mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
test(): update to public navCtrl convention
This commit is contained in:
@ -10,7 +10,7 @@ class E2EPage1 {
|
||||
items: number[] = [];
|
||||
enabled: boolean = true;
|
||||
|
||||
constructor(private nav: NavController) {
|
||||
constructor(public navCtrl: NavController) {
|
||||
for (var i = 0; i < 30; i++) {
|
||||
this.items.push( this.items.length );
|
||||
}
|
||||
@ -35,7 +35,7 @@ class E2EPage1 {
|
||||
}
|
||||
|
||||
goToPage2() {
|
||||
this.nav.push(E2EPage2);
|
||||
this.navCtrl.push(E2EPage2);
|
||||
}
|
||||
|
||||
toggleInfiniteScroll() {
|
||||
@ -46,10 +46,10 @@ class E2EPage1 {
|
||||
|
||||
|
||||
@Component({
|
||||
template: '<ion-content><button (click)="nav.pop()">Pop</button></ion-content>'
|
||||
template: '<ion-content><button (click)="navCtrl.pop()">Pop</button></ion-content>'
|
||||
})
|
||||
class E2EPage2 {
|
||||
constructor(private nav: NavController) {}
|
||||
constructor(public navCtrl: NavController) {}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user