I recently update my project from Beta 11 to RC2 and I’m currently having some problems with “menuToggle” component.
When i call the main page (which contains the menu) for the first time, everything works.
But when I would return to this main page after some navigation transitions, the button seems to be disabled.
No errors appears in the Logs / Console.
I use “nav.setRoot(MainPage)” to return to the main page.
MainPage.xhtml :
<!-- Header -->
<ion-header>
<ion-navbar>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>{{ getEstablishmentName() }}</ion-title>
</ion-navbar>
</ion-header>
<!-- Tabs links -->
<ion-tabs primary>
<ion-tab [root]="getTabHome()" tabIcon="home"></ion-tab>
<ion-tab *ngFor="let t of data.tabs; let i = index" (ionSelect)="openTab(t.page)" [root]="tabRedirection"
tabIcon="{{ getIconClass(t) }}"></ion-tab>
</ion-tabs>
I’m experiencing the same kind of issue. After opening a Modal with a login component and a succesfull login, I’m trying to set the root the a profilepage. After that the menutoggle seems to be broken. Also calling the menuController manually and toggling the left side menu doesn’t seem to be working. How did you resolve this issue @bennydevnet?
Aw. Turns out I made a stupid mistake. Because I was invoking the nav.setroot from inside the modal, things got broken. Instead, I did the setRoot in the modal.onDismiss (as intended). Now everything works as expected! Thanks future me for answering this question on my behalf.
@luukschoen I tried your approach but unfortunately it doens’t work work for me
I am setting HomePage to root that contains a tab layout using ionic2-supertabs
menu markup is defined in app.html (menu content is defined in a component btw)
I am on the latest ionic version 3.7.1 and supertabs 4.1.0. I’ve raised this issue on Github for the Ionic team, hoping someone else might be having this issue and would be able to suggest some solution?
Is there anything else i can do without using such a SCSS hack?
When i use this solution, the setRoot wont work anymore (the defined page wont display).