fix(router): RouterLink mirrors input target
as attribute
Closes #13837
This commit is contained in:

committed by
Matias Niemelä

parent
fb6c4582a1
commit
d9a22dae4f
@ -139,7 +139,7 @@ export class RouterLink {
|
||||
*/
|
||||
@Directive({selector: 'a[routerLink]'})
|
||||
export class RouterLinkWithHref implements OnChanges, OnDestroy {
|
||||
@Input() target: string;
|
||||
@HostBinding('attr.target') @Input() target: string;
|
||||
@Input() queryParams: {[k: string]: any};
|
||||
@Input() fragment: string;
|
||||
@Input() preserveQueryParams: boolean;
|
||||
|
Reference in New Issue
Block a user