Hey guys, I have some problem with $ionicView.clearCache(). I have a tab-based app in which I want to clear the view cache at certain times. Check this codepen.
Note that in tab 1 and tab 2 I have two views like so:
<ion-tab>
<div ui-view="tab1-top/tab2-top" /> //(shown in gray background)
<ion-nav-view name="tab1/tab2">
</ion-tab>
Now when you clear the cache by clicking any of the “Clear cache”-buttons, Tab 1 and Tab 2 (except the one you currently have active, if either) will stop working. However, Tab 3 which only has an ion-nav-view (no ui-view) works just fine.
I’ve narrowed down the problem to this commit (js/angular/directive/tab.js:181). Removing this line and everything seems to work just fine, but I suspect it re-introduce the initial problem the commit intended to fix. Also I don’t know if I’m just doing it wrong somewhere.
Any suggestions or confirmation of a bug is welcome.