Reset / Clear a Tab history stack


#1

I’m trying to Clear a Tab history stack when selecting it.
I have 5 tabs and when navigating through them, I want it to always go back to the Root of the tab.

Currently what I do is on (ionSelect) I do : this.tabRef.select(tabNumber) to fake a double click on the tab, but we are seeing the sub-pages “popping” wich isn’t very user friendly.

Any solution ?

Thanks,
Laurent Bourget


#2

Did you ever find a solution for this? I too am looking for a solution for a related issue. My specific issue is Forcing Tab Root. If you did get it working please do share it as I might be able to use something similar. I specifically need to get back to the root for Tab2 & Tab3 when information changes on Tab1. Often, my users leave Tab2-subPage or Tab3-subPage and go straight to Tab1, change their info and then go back to Tab2 or Tab3…but the view is still the subPage and not the Tab2/Tab3 root with all the new information.

If your fake double click is working, maybe putting it in this would prevent the sub-pages popping.

$scope.$on(’$ionicView.beforeEnter’, function(){ … }