If I click on a menu item in I’m redirected to that page and my menu button is replaced with a back button.
I want the menu button to be persistent always, how do I do this?
On menu item click:
$state.go('app.schedule')
layout:
.state('app', {
url: '/app',
abstract: true,
templateUrl: 'templates/menu.html',
controller: 'MenuCtrl'
})
.state('app.welcome', {
url: '/welcome',
views: {
'menuContent': {
templateUrl: 'templates/welcome.html',
controller: 'WelcomeCtrl'
}
}
})
.state('app.schedule', {
url: '/schedule',
views: {
'menuContent': {
templateUrl: 'templates/schedule.html',
controller: 'ScheduleCtrl'
}
}
})