File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
components/nav/test/basic Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,11 @@ export class FirstPage {
104
104
for ( var i = 1 ; i <= 50 ; i ++ ) {
105
105
this . pages . push ( i ) ;
106
106
}
107
- if ( ! this . myCmp || ! this . content || ! this . myCmp . label ) {
108
- throw new Error ( 'children are not loaded' ) ;
109
- }
107
+ // if (!this.myCmp || !this.content || !this.myCmp.label) {
108
+ // throw new Error('children are not loaded');
109
+ // }
110
110
this . myCmp . value = 'root!' ;
111
- this . myCmp . label . color = 'primary' ;
111
+ // this.myCmp.label.color = 'primary';
112
112
this . called . ionViewDidLoad ++ ;
113
113
}
114
114
Original file line number Diff line number Diff line change @@ -438,11 +438,14 @@ export class NavControllerBase extends Ion implements NavController {
438
438
this . _renderer . setElementClass ( pageElement , view . _cssClass , true ) ;
439
439
}
440
440
441
- componentRef . changeDetectorRef . detectChanges ( ) ;
441
+ // TODO:
442
+ // componentRef.changeDetectorRef.detectChanges();
442
443
443
444
// successfully finished loading the entering view
444
445
// fire off the "didLoad" lifecycle events
445
446
this . _didLoad ( view ) ;
447
+
448
+ componentRef . changeDetectorRef . detectChanges ( ) ;
446
449
}
447
450
448
451
_viewTest ( enteringView : ViewController , leavingView : ViewController , ti : TransitionInstruction ) {
You can’t perform that action at this time.
0 commit comments