Error: Cannot read property 'push' of undefined


#1

I’m getting a “Cannot read property ‘push’ of undefined” when using

goToNext() {
this.navCtrl.push(NextPage);
}

I imported NextPage on .ts file and declared navCtrl: NavController on my constructor…