Created
August 17, 2018 08:31
-
-
Save realtomaszkula/ac60a1628df854c2218477fdd1549bf4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Directive({ | |
selector: 'a:not([routerLink])' | |
}) | |
export class ExternalLinkDirective { | |
@HostBinding('rel') | |
@Input() | |
rel = 'noopener'; | |
@HostBinding('target') | |
@Input() | |
target = '_blank'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment