I’m currently having an issue moving from position A (navStack 1) to position B (navStack 2) with a simple approach.
The root of my app is TabPage
, which has 4 Tabs aka. 4 TabPage.
Tab1Page is a searchpage. When search is executed and we get the results back, we should navigate to Tab2, but on Tab2SubPage
. How can I achieve this?
Sadly this.navCtrl.parent.select(1).push(Tab2SubPage)
doesn’t work like that. My current approach goes like that:
- search
- switch tabs using
this.navCtrl.parent.select(1)
- set timeout for 500 ms
- send an event “nav:goToSubPage”
-
Tab2Page
catches the event and does .pop(Tab2SubPage)
This is kind of very complex way to do a simple task and I’m probably missing something.
Any help would be much appreciated.