We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35389a1 commit ece0d95Copy full SHA for ece0d95
projects/components/src/link/link.component.ts
@@ -12,6 +12,8 @@ import { EMPTY, Observable } from 'rxjs';
12
<a
13
*htLetAsync="this.navData$ as navData"
14
class="ht-link"
15
+ target="{{ this.openInNewTab ? '_blank' : '' }}"
16
+ rel="noopener noreferrer"
17
[ngClass]="{ disabled: this.disabled || !navData }"
18
[routerLink]="navData?.path"
19
[queryParams]="navData?.extras?.queryParams"
@@ -27,6 +29,9 @@ export class LinkComponent implements OnChanges {
27
29
@Input()
28
30
public paramsOrUrl?: NavigationParams | string | null;
31
32
+ @Input()
33
+ public openInNewTab?: boolean;
34
+
35
36
public disabled?: boolean;
37
0 commit comments