diff --git a/src/components/nav/nav-controller.ts b/src/components/nav/nav-controller.ts index 1cde1f0820a..61b391bfca8 100644 --- a/src/components/nav/nav-controller.ts +++ b/src/components/nav/nav-controller.ts @@ -745,6 +745,10 @@ export class NavController extends Ion { */ popTo(view: ViewController, opts?: NavOptions): Promise { let startIndex = this.indexOf(view); + if (startIndex < 0) { + return Promise.reject('View not found to pop to'); + } + let activeView = this.getByState(STATE_TRANS_ENTER) || this.getByState(STATE_INIT_ENTER) || this.getActive();