hideBackButton attribute hides the menuToggle button too
See original GitHub issueThe Problem
I push the Root Page to Page2 that supports a side menu, the issue is that when it opens Page2 it shows the back button and hides the menu button for that I’ve tried to add hideBackButton
to Page2 in order to see the menu button but I both the back button and menu button disappeared!
Here is my current code:
<ion-navbar hideBackButton>
<button menuToggle start>
<ion-icon name="menu"></ion-icon>
</button>
</ion-navbar>
What behavior are you expecting?
Should hide the back button, and show the menu button.
Which Ionic Version? Ionic2
Cordova CLI: Not installed Ionic CLI Version: 2.0.0-beta.32 Ionic App Lib Version: 2.0.0-beta.18 ios-deploy version: Not installed ios-sim version: Not installed OS: Mac OS X El Capitan Node Version: v4.4.7 Xcode version: Xcode 7.3.1 Build version 7D1014
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:17 (2 by maintainers)
Top Results From Across the Web
hideBackButton attribute hides the menuToggle button too
The Problem I push the Root Page to Page2 that supports a side menu, the issue is that when it opens Page2 it...
Read more >hideBackButton attribute hides the menuToggle button too
I push the Root Page to Page2 that supports a side menu, the issue is that when it opens Page2 it shows the...
Read more >Ater login, how to hide back button and show my toggle menu ...
A button with the property menuToggle to toggle the sidemenu. <ion-header> <ion-navbar hideBackButton="true"> <button ion-button menuToggle> < ...
Read more >ionic framework tutorial for beginners Archives - Page 2 of 7
Hide back button in ionic AngularJs : Sometimes we need to hide the ... and the attribute directive menu-toggle=”left” which binds the menu...
Read more >Hiding toggle buttons when associated menus are empty
Making sure buttons that toggle empty things are hidden is a quick win to ... Hide menu toggle button if menu is empty...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi Here is the solution ,
if you are using this.navCtrl.push(page2) it just push the component to the main root … instead of this we can use
this.navCtrl.setRoot(Page2);
hope this will hep you people
This is ugly but what I did was call
this.navCtrl.setRoot(page)
twice and the menu button shows. idk why but it worked