diff --git a/core/src/components/nav/nav.tsx b/core/src/components/nav/nav.tsx index 9151be2a39..0536c29cbd 100644 --- a/core/src/components/nav/nav.tsx +++ b/core/src/components/nav/nav.tsx @@ -48,10 +48,11 @@ export class Nav implements NavOutlet { @Prop() root: NavComponent|undefined; @Watch('root') rootChanged() { + const isDev = Build.isDev; if (this.root) { if (!this.useRouter) { this.setRoot(this.root, this.rootParams); - } else if (Build.isDev) { + } else if (isDev) { console.warn(' does not support a root attribute when using ion-router.'); } }