When i am redirecting from another view to home view the sidemenu is hiding and transition is reloading
I have routing as
$stateProvider
.state('app', {
url: "/app",
abstract: true,
templateUrl: "templates/menu.html",
controller: 'AppCtrl'
})
.state('app.home', {
url: "/home",
views: {
'menuContent': {
templateUrl: "templates/home.html",
controller:"HomeCtrl"
}
}
})
.state('app.browse', {
url: "/browse",
views: {
'menuContent': {
templateUrl: "templates/browse.html"
}
}
};
$urlRouterProvider.otherwise('/app/home');
i have a footer in which there is an achor for home redirect as,
<a class="tab-item" href="#/app/home">
<i class="icon ion-home"></i>
Home
</a>
The issue which i am facing is as if i’m inside browse view and press the home button, it will change the transition state and side menu is not visible…
How do i redirect back to my default view which is home without loosing sidemenu.