From 61f236e0f9294a3f11cbe3ecda93a7c805729778 Mon Sep 17 00:00:00 2001 From: Thiery Laverdure Date: Thu, 27 Oct 2016 15:44:11 -0400 Subject: [PATCH] [navPush] Check if the NavPush page exists. When using the NavPush directive there isn't a way to disable the nav from trying to push. --- src/components/nav/nav-push.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/nav/nav-push.ts b/src/components/nav/nav-push.ts index 739b24e2dd..34eb0707ee 100644 --- a/src/components/nav/nav-push.ts +++ b/src/components/nav/nav-push.ts @@ -71,7 +71,7 @@ export class NavPush { */ @HostListener('click') onClick(): boolean { - if (this._nav) { + if (this._nav && this.navPush) { this._nav.push(this.navPush, this.navParams, null); return false; }