Is there a way to delete the cache of the view that one wants? For example, in the javascript I want to delete the cache of the next view that I want, so that it updates the information of all the products, but in another view it returns to the products view and At that moment I don't want to delete cache, only to delete the cache to click on a button, I already tried to place $ionicHistory.clearCache(), but it doesn't delete the cache, only if the cache-view="false" is placed:
<ion-view view-title="productos-view" cache-view="false">
Thank you very much.
Yes, this way:
Where
app_location
you must replace it with the name of yourstate
so when you return with the back button it will not save the cache but it will refresh the view.Another option is to use:
This will make executing code before it enters your view, so you could refresh the information there.