How to update ionic performance

I want to refresh the page when I click (refresh the data on the page, release the cache) On the main page, I have a list on my main page. There is a function for changing an item in a list. but when I change the element and redirect to the main page, it shows me the previous values ​​before the page was updated, I want to be updated only when I click the button (I clear the cache on the main page). in the controller $state.go("app.feed");I wrote this. how to change it?

+4
source share
2 answers

If you just want to reload the state you can use:

$state.go($app.feed, {}, {reload: true});

$state.go($state.current, {}, {reload: true});

: / Ionic Framework

:

https://github.com/angular-ui/ui-router/issues/582

+2

"cache-view" ,

<ion-view view-title="Favourite List" cache-view="false">
0

Source: https://habr.com/ru/post/1614391/


All Articles