mcrespi
1
Hi, I have 4 tabs, after tap a button I need go to the first tab, with this code goes to the first tab but push CategoryPage in the previous tab.
goCategoryPage() {
this.navCtrl.parent.select(0);
this.navCtrl.push(CategoryPage);
}
How can I change to first tab and THEN push a page in the new selected tab?
Thanks!
mcrespi
2
Well, after a few hours to search how can do it … I hope can be helpful to someone!
Only have to import app and after getRootNav() then push the desired page.
constructor
(
public viewCtrl: ViewController,
public app: App
) { }
MethodName() {
this.app.getRootNav().push(OtherPage);
this.viewCtrl.dismiss();
}