diff --git a/src/components/nav/test/basic/app-module.ts b/src/components/nav/test/basic/app-module.ts index 9cd47bc09b..ee324e5582 100644 --- a/src/components/nav/test/basic/app-module.ts +++ b/src/components/nav/test/basic/app-module.ts @@ -104,11 +104,11 @@ export class FirstPage { for (var i = 1; i <= 50; i++) { this.pages.push(i); } - if (!this.myCmp || !this.content || !this.myCmp.label) { - throw new Error('children are not loaded'); - } + // if (!this.myCmp || !this.content || !this.myCmp.label) { + // throw new Error('children are not loaded'); + // } this.myCmp.value = 'root!'; - this.myCmp.label.color = 'primary'; + // this.myCmp.label.color = 'primary'; this.called.ionViewDidLoad++; } diff --git a/src/navigation/nav-controller-base.ts b/src/navigation/nav-controller-base.ts index c921c8d806..d72ac34597 100644 --- a/src/navigation/nav-controller-base.ts +++ b/src/navigation/nav-controller-base.ts @@ -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) {