Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
186
rated 0 times [  189] [ 3]  / answers: 1 / hits: 6876  / 9 Years ago, wed, november 4, 2015, 12:00:00

I want to refresh a page when I click a button (refresh the data in the page, release the cache)
The main page I have a list in my main page. there is a function for change the item on the list. but when I change the item and redirect to main page it show me the previous values until refresh the page, I want to refresh only when I press the button (clear the cache on main page ).
in controller $state.go(app.feed); I wrote this. how do I change it ?


More From » view

 Answers
2

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



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

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


you can refer this page :Clear History and Reload Page on Login/Logout Using Ionic Framework



or



Refer this page:



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


[#33094] Tuesday, November 3, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
masonm

Total Points: 167
Total Questions: 87
Total Answers: 103

Location: Rwanda
Member since Wed, Jun 8, 2022
2 Years ago
masonm questions
;