Hi, I need to load an state always at the first history point. Right now if i load the state and it was in the step two of the history it loads the step two. I’m looking for something like a it will be great not to use $ionicHistory.clearHistory() because it reset all the histories and i need just disable one.
$stateProvider.state('main', {
url: '/main',
cache:false,
abstract:true,
views: {
'main': {
template: '<ion-nav-view></ion-nav-view>',
controller:'MainCtrl'
}
}
})
.state('main.stepone', {
url: '/stepOne',
templateUrl: 'templates/stepOne.html'
})
.state('main.steptwo', {
url: '/stepTwo',
templateUrl: 'templates/stepTwo.html'
})
Thank you guys!