Ionic2 pop tabs page


#1

I have firstTabsPage as parent/root page

In one of child page, I want to click a element then nav.push(secondTabsPage). It works and show tabs from secondTabs Page. However, how can I pop/close this secondTabspage and return to firstTabsPage?


#2

Take a look the “swipeBackEnabled” at the Nav component page. It may have be disabled.


#3

thanks. That should work. I figure it out. Just add nav header in front of secondTabsPage. I can pop from header

<ion-header>

  <ion-navbar>
    <ion-title>second tab page</ion-title>
  </ion-navbar>

</ion-header>

<ion-tabs  >
  
 .....
  
  
</ion-tabs>