Ionic 2 SideMenu and Tabs


#1

Hi Everyone,

I have just started creating an Ionic 2 app and I have added a side menu along with tabs. My menu is using the menuToggle method while the tabs is using the TabsPage component. When the application loads first time, the tabs display perfectly fine and go to the correct pages that they should go to however if I select the side menu that pops up and displays and select a page to go to within there the tabs disappear when I render the page, even if the page is the same as a tab page.

I just wondered if anyone else has experienced the same issue or has a resolution. I would really appreciate it. Thank you.


#2

My thoughts are that it is this function that needs to be configured correctly to allow it to know that when you open a page it must keep the tap to remain when it is an option in the side menu:

  openPage(page) {
    // Reset the content nav to have just this page
    // we wouldn't want the back button to show in this scenario
    this.nav.setRoot(page.component);
  }