How would I setup routes so it doesn’t push onto the history stack and add the back button.
The specific example I have is having a log in page redirect to a root view, but not having the back button displayed on the root view.
Here is the route code I have:
$stateProvider
.state('login', {
url: '/login',
templateUrl: 'client/views/login.tpl'
})
.state('root', {
url:'/root',
templateUrl: 'client/views/root.tpl'
})