Skip to content

Commit

Permalink
fix(modal): canEnter is called in modals
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Oct 12, 2016
1 parent 1300cbd commit a40b42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/navigation/nav-controller-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -549,7 +550,6 @@ export class NavControllerBase extends Ion implements NavController {
_viewInsert(view: ViewController, componentRef: ComponentRef<any>, 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
Expand Down

0 comments on commit a40b42c

Please sign in to comment.