From a40b42c055a97cbb3ef21f5b1b1b40f6514b459b Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Wed, 12 Oct 2016 22:56:24 +0200 Subject: [PATCH] fix(modal): canEnter is called in modals --- src/navigation/nav-controller-base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/navigation/nav-controller-base.ts b/src/navigation/nav-controller-base.ts index daa97b16b7..4671f8cf22 100644 --- a/src/navigation/nav-controller-base.ts +++ b/src/navigation/nav-controller-base.ts @@ -432,6 +432,7 @@ export class NavControllerBase extends Ion implements NavController { // create ComponentRef and set it to the entering view enteringView.init(componentFactory.create(childInjector, [])); enteringView._state = ViewState.INITIALIZED; + this._willLoad(enteringView); } _viewTest(enteringView: ViewController, leavingView: ViewController, ti: TransitionInstruction) { @@ -549,7 +550,6 @@ export class NavControllerBase extends Ion implements NavController { _viewInsert(view: ViewController, componentRef: ComponentRef, viewport: ViewContainerRef) { // successfully finished loading the entering view // fire off the "didLoad" lifecycle events - this._willLoad(view); this._didLoad(view); // render the component ref instance to the DOM