My app pages structure is like this
app
app.home
app.option
app.login
I have set enable-menu-with-back-views="false"
in side menu .
after successful login I have called state.go('app.home')
which shows back button in app.home
So then I use hide-back-button
in app.home .
Now when I come to app.home
from app.login
side-menu is not showing up. (because I have set enable-menu-with-back-views to false)
How can I show menu in app.home
now?
How to handle this kind of problem?
Can you put together a codepen for this? Iām having a hard time visualizing all of this.
Hi,
Here is codepen : http://codepen.io/vinay885/pen/qEmWLe?editors=101
If you click on Login Now
button it will you take to page eventmenu.home
, I want side menu enable on this page.
You can set the next view options before navigating to the login page and initialize it as the root of the navigation stack:
$scope.authorize = function()
{
$ionicHistory.nextViewOptions({
historyRoot: true
});
$state.go('eventmenu.home');
}
4 Likes
Cool Thanks , It works like a charm
1 Like