fix(router): state data missing in routerLink (#33203)

Fixes 33173

PR Close #33203
This commit is contained in:
Santosh Yadav 2019-10-17 01:09:30 +05:30 committed by Matias Niemelä
parent b57be3bb41
commit de67978a7d
1 changed files with 1 additions and 0 deletions

View File

@ -163,6 +163,7 @@ export class RouterLink {
const extras = {
skipLocationChange: attrBoolValue(this.skipLocationChange),
replaceUrl: attrBoolValue(this.replaceUrl),
state: this.state
};
this.router.navigateByUrl(this.urlTree, extras);
return true;