Hey all, having an issue with routing and wondered if there was any documentation I was missing (either for the UI Router, or $ionicHistory). Just through trial and error, it seems as though if you $state.go
to the previous state, you get the same backwards transition you’d get if you hit the back button, which is great. This doesn’t seem to work if you clear the history in the view you’re transitioning to, or if you include any state params (i.e. $state.go(‘events’, {shouldClearHistory: false})
). Are there clear rules for this anywhere? Cheers
Edit: Oh, also, the backwards behaviour of $state.go
doesn’t appear to happen if you’ve called $ionicHistory.clearHistory()
/$ionicHistory.clearCache()
at any point in the past.