fix(angular): routerLink uses <a>

This commit is contained in:
Manu Mtz.-Almeida
2018-05-08 22:31:33 +02:00
parent 0f8477dc34
commit 526c9a8f35

View File

@ -6,6 +6,11 @@ import { Router } from '@angular/router';
}) })
export class HrefDelegate { export class HrefDelegate {
@Input()
set routerLink(_: any) {
this.elementRef.nativeElement.href = '#';
}
@Input() @Input()
set href(value: string) { set href(value: string) {
this.elementRef.nativeElement.href = value; this.elementRef.nativeElement.href = value;