diff --git a/angular/src/directives/navigation/stack-controller.ts b/angular/src/directives/navigation/stack-controller.ts index fd75849049..3f48e1763e 100644 --- a/angular/src/directives/navigation/stack-controller.ts +++ b/angular/src/directives/navigation/stack-controller.ts @@ -106,9 +106,8 @@ export class StackController { const element = view.element; element.setAttribute('aria-hidden', 'true'); element.classList.add('ion-page-hidden'); - // view.ref.changeDetectorRef.detach(); + view.ref.changeDetectorRef.detach(); } - this.viewsSnapshot = views.slice(); } @@ -133,6 +132,9 @@ export class StackController { this.skipTransition = false; return; } + if (enteringView) { + enteringView.ref.changeDetectorRef.reattach(); + } const enteringEl = enteringView ? enteringView.element : undefined; const leavingEl = leavingView ? leavingView.element : undefined; const containerEl = this.containerEl;