diff --git a/angular/src/directives/navigation/stack-controller.ts b/angular/src/directives/navigation/stack-controller.ts index 4a277eae99..2fcbe94824 100644 --- a/angular/src/directives/navigation/stack-controller.ts +++ b/angular/src/directives/navigation/stack-controller.ts @@ -225,13 +225,15 @@ export class StackController { containerEl.appendChild(enteringEl); } - return containerEl.commit(enteringEl, leavingEl, { - deepWait: true, - duration: direction === undefined ? 0 : undefined, - direction, - showGoBack, - progressAnimation - }); + if ((containerEl as any).commit) { + return containerEl.commit(enteringEl, leavingEl, { + deepWait: true, + duration: direction === undefined ? 0 : undefined, + direction, + showGoBack, + progressAnimation + }); + } } return Promise.resolve(false); }