I currently have a use case for my application where the user navigates from page A to page B and completes a form which transitions them to page C. In my application, I have code in the submit-handler for a form on a page B which calls a service and then routes them to page C via a
$state.go call if the service call succeeds.
For this particular series of transitions, page B is considered almost like a modal in that it shouldn’t add an entry into the history. So when the user ends up on page C, if they hit back they should go to page A. I’m looking into the
$ionicViewService and the
nav-clear directive, but it doesn’t seem like there’s an obvious way to accomplish this.
Does anyone have any suggestions about the best way to go forward with this feature?