fix(router): RouterLink mirrors input target as attribute

Closes #13837
This commit is contained in:
Dzmitry Shylovich
2017-01-08 01:04:18 +03:00
committed by Matias Niemelä
parent d6c414c08f
commit 1c82b58185
2 changed files with 4 additions and 2 deletions

View File

@ -133,7 +133,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;