I think this is the answer
just tried it and it works!
import { App } from ‘ionic-angular’;
constructor(public appCtrl: App){}
add to controller .
logout() {
this.appCtrl.getRootNav().pop();
}
I think this is the answer
just tried it and it works!
import { App } from ‘ionic-angular’;
constructor(public appCtrl: App){}
add to controller .
logout() {
this.appCtrl.getRootNav().pop();
}