Maybe I am missing something, but I’m experiencing a problem with Ionic caching views previously visited, preventing the components from being re-initialized by Angular. The components are pulled from some cache and rendered as whatever data existed previously.
User A is logged into the application and starts on the ‘Home’ page with info relevant to user A. User A logs out and navigates to ‘Log In’.
User B logs in from the same application and navigates to ‘Home’ page. Ionic see’s that Home was previously visited (by user A) and instead of instantiating ‘Home’, the view is pulled from cache and displays everything that User A was seing.
I noticed ion-router-outlet adds page transitioning when navigation, and this transition swaps to the left, when the navigation goes “forward” and swipe right when the navigation goes “backwards”. This data seems to read from the same history-source that stores cached views.
TL;DR How to control Ionic router history (url tree) from caching the views preventing angular to re-initialize the components?