From de67978a7d0d867ccbb91615a09e4471584569da Mon Sep 17 00:00:00 2001 From: Santosh Yadav Date: Thu, 17 Oct 2019 01:09:30 +0530 Subject: [PATCH] fix(router): state data missing in routerLink (#33203) Fixes 33173 PR Close #33203 --- packages/router/src/directives/router_link.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/router/src/directives/router_link.ts b/packages/router/src/directives/router_link.ts index c12ca2c8cf..15107556ba 100644 --- a/packages/router/src/directives/router_link.ts +++ b/packages/router/src/directives/router_link.ts @@ -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;