From 8c4fd56b81ac87b8efaf25c9da928059a954e5ea Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Sat, 21 Jan 2017 00:05:29 +0100 Subject: [PATCH] fix(navPush): unhandled promise exception --- src/components/nav/nav-push.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/nav/nav-push.ts b/src/components/nav/nav-push.ts index 34eb0707ee..5dd2579371 100644 --- a/src/components/nav/nav-push.ts +++ b/src/components/nav/nav-push.ts @@ -72,7 +72,9 @@ export class NavPush { @HostListener('click') onClick(): boolean { if (this._nav && this.navPush) { - this._nav.push(this.navPush, this.navParams, null); + this._nav.push(this.navPush, this.navParams).catch(() => { + console.debug('navPush was rejected'); + }); return false; } return true;