How to skip Tabs Page, when user clicks Back button(<) in Other page

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();
}

4 Likes