fix(picker): fixes regression in picker but introduces new bug.

OnDidLoad is called before ngonInit() is not called in children
This commit is contained in:
Manu Mtz.-Almeida
2016-10-27 01:13:07 +02:00
parent 837ca76dad
commit c1ba120b74
2 changed files with 8 additions and 5 deletions

View File

@ -438,11 +438,14 @@ export class NavControllerBase extends Ion implements NavController {
this._renderer.setElementClass(pageElement, view._cssClass, true);
}
componentRef.changeDetectorRef.detectChanges();
// TODO:
// componentRef.changeDetectorRef.detectChanges();
// successfully finished loading the entering view
// fire off the "didLoad" lifecycle events
this._didLoad(view);
componentRef.changeDetectorRef.detectChanges();
}
_viewTest(enteringView: ViewController, leavingView: ViewController, ti: TransitionInstruction) {