Please try below code, Its working for me:
$state.go("your_main_state_name_here");
$ionicHistory.clearHistory();
setTimeout(function (){
$window.location.reload(true);
}, 100);
$state.go("your_main_state_name_here");
$ionicHistory.clearHistory();
setTimeout(function (){
$window.location.reload(true);
}, 100);
thx!
ReplyDeleteit is not working for me.
ReplyDeleteWhat issue you are facing? any error?
Deleteall its doing its refreshing the current page, but i would like for it to run app.js again
DeleteWorking Fine
ReplyDeleteThank you