Hello
I have troubles with navigation and side menu
In my index.html. I have a side menu
<ion-side-menu-content>
<ion-nav-view name="main"></ion-nav-view>
</ion-side-menu-content>
<ion-side-menu side="left">
<ion-header-bar class="bar bar-header bar-dark">Settings</ion-header-bar>
<ion-content>
<ion-list>
<ion-item ui-sref="Selection" menu-close>Selection</ion-item>
</ion-list>
</ion-content>
</ion-side-menu>
.
When I click on Selection link, I’m redirected to the page.
But my problem is when I want to “go back” and display the home page (home.html) , I’m redirected but I do not have acces to the side menu anymore.
$stateProvider
.state('home', {
url: "/home",
views: {
main: {
templateUrl: "templates/home.html"
}
}
})
.state('Selection', {
url: "/Selection",
views: {
main: {
templateUrl: "templates/Settings/Selection.html"
}
}
})
The link that I use to navigation from selection.html to home is
<a ui-sref="home" nav-transition=none>
–>Using enable-menu-with-back-views seems to fix my problem, but is it correct ?
<ion-side-menus enable-menu-with-back-views="true">
Thank you