question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hideBackButton attribute hides the menuToggle button too

See original GitHub issue

The 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
vvrahulcommented, Jul 30, 2017

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

2reactions
pertsengacommented, Oct 13, 2017

This is ugly but what I did was call this.navCtrl.setRoot(page) twice and the menu button shows. idk why but it worked

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found