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
@Component({ | |
selector: 'app-details-page', | |
template: '<pre>{{ state$ | async | json }}</pre>' | |
}) | |
export class DetailsPageComponent implements OnInit { | |
state$: Observable<object>; | |
constructor(public activatedRoute: ActivatedRoute) {} | |
ngOnInit() { |
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
@Component({ | |
selector: 'app-root', | |
template: `<pre>{{ state$ | async | json }}</pre>`, | |
}) | |
export class AppComponent implements OnInit { | |
private state$: Observable<object>; | |
constructor(public router: Router) { } | |
ngOnInit() { |
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])', | |
}) |
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: 'form:not([ngNoForm]):not([formGroup]),ngForm,ng-form,[ngForm]', | |
}) |
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() |
NewerOlder