test(): update to public navCtrl convention

This commit is contained in:
Adam Bradley
2016-08-04 13:50:15 -05:00
parent 478ac45211
commit 3c493652b2
36 changed files with 154 additions and 145 deletions

View File

@ -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) {}
}