When you go to a side menu item, e.g. menu.item1
, and then go to another state with either ui-sref
or $state.go()
, e.g. menu.anotherState
, it works as expected: the view is “pushed” and you see a back button.
However, if you then open the side menu from this view and choose another menu item or even the same menu.item1
it’s also pushed onto the navigation stack, which is kind strange since it’s one of the menu’s root views. As a result, you end up with the same view presented twice.
How do you handle this situation?
My app has the menu button visible in all screens, so users can open menu at any time. Is this supported?