Open tab root when click on tabs


#1

Hi all,

I want to open root page when I click on tab.
For example. I have a list in Favorite page, and when I click on one item of list, it navigates to ItemPage.
Then I click on Search tab and click back to the Favorite tab again, and I see ItemPage(detail page of favorite page). However, I would like to see directly Favorite page.

ion-tabs>
ion-tab [root]=“tab1Root” tabTitle=“Favorite” tabIcon=“star”>
ion-tab [root]=“tab2Root” tabTitle=“Search” tabIcon=“search”>
ion-tabs>