-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ionicHistory not working for change sideMenu #2802
Comments
For this, you would remove the Note that
Replace |
Greetings, @sunshineo! We are now requiring all issues to be submitted through our custom issue form so that we have all of the information necessary to fix them as quickly as possible. Your progress on this issue has been saved at the following url: This issue will be closed if not resubmitted through the form. Please fill out the rest of the form so that we may assist you. Thank you for allowing me to assist you. |
@mhartington Thank you Mike it works. I feel the documentation here http://ionicframework.com/docs/api/directive/ionSideMenus/ about menu-close could be improved a little. I thought it means if I want the side menu to stay visible on the side for ipad, then I remove it. The documentation here http://ionicframework.com/docs/api/directive/menuClose/ is a little better. @Ionitron Noted. |
I was having the same issue until I found this post and replaced all my menu-close with menu-toggle="right". |
Hi, you can update your starter sidemenu template to reflect the 'menu-close' to 'menu-toggle' change then. |
@mhartington You're the king. Fought with this issue too long and the solution was so easy! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
I asked this before here #2713 and it got closed. But the solution does not work for me. Now I have a example project here to illustrate the problem.
https://github.com/sunshineo/ionic-sidemenu
I have enable-menu-with-back-views set to true.
When the app starts, I'm at http://localhost:8100/#/app/playlists
I open the side menu, click "Browse"
I added a back button that will try to use $ionicHistory to go back. I see the alert but the $ionicHistory.goBack() does not work. It just stays here.
However, if I go back to Playlists and do not use the sideMenu but type http://localhost:8100/#/app/browse in the browser I got this:
And the back button works.
I'm thinking navigate through the side menu will clear history. But enable-menu-with-back-views is not the flag to stop it from clearing. The documentation seems to say that it is the flag about if you want to have side menu sandwich when you went one level down for example to an item on the Playlist. What I need is to NOT clear history when navigate through side menu.
The text was updated successfully, but these errors were encountered: