From 50abcf5ab3a29a51a3dd48d74626d10267555a09 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Mon, 19 Mar 2018 17:10:30 +0100 Subject: [PATCH] feat(nav): support for rootParams --- core/src/components/nav/nav.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/components/nav/nav.tsx b/core/src/components/nav/nav.tsx index ed28e76448..9577ad06d1 100644 --- a/core/src/components/nav/nav.tsx +++ b/core/src/components/nav/nav.tsx @@ -57,12 +57,13 @@ export class NavControllerBase implements NavOutlet { @Prop({ connect: 'ion-animation-controller' }) animationCtrl: HTMLIonAnimationControllerElement; @Prop({mutable: true}) swipeBackEnabled: boolean; + @Prop() rootParams: any; @Prop() root: any; @Watch('root') rootChanged() { if (this.root) { if (!this.useRouter) { - this.setRoot(this.root); + this.setRoot(this.root, this.rootParams); } else if (Build.isDev) { console.warn(' does not support a root attribute when using ion-router.'); }