diff --git a/angular/src/providers/nav-controller.ts b/angular/src/providers/nav-controller.ts index 9fa391267f..101967f0f2 100644 --- a/angular/src/providers/nav-controller.ts +++ b/angular/src/providers/nav-controller.ts @@ -131,17 +131,21 @@ export class NavController { * * It recursively finds the top active `ion-router-outlet` and calls `pop()`. * This is the recommended way to go back when you are using `ion-router-outlet`. + * + * Resolves to `true` if it was able to pop. */ - async pop(): Promise { + async pop(): Promise { let outlet = this.topOutlet; while (outlet) { if (await outlet.pop()) { - break; + return true; } else { outlet = outlet.parentOutlet; } } + + return false; } /**