I am working on an Ionic-1 App. I am terrible confused in managing the back history of my app. Consider this scenario:
- Start from home page then
- Does a 3 step user registration process
- After the end of user registration redirect to records page
Now clicking back button (hard or soft back) I want to navigate back to home instead of cycling through user registration process. There are other scenarios like this where back behavior needs to be modified. Are there any references around to implement back behavior systematically? Should I manually define view hierarchy tree structure and somehow figure out where in tree current view is and then go to parent?