View Not Refreshing


#1

I have 4 different views and I need the home view to reload I have put this into a small function as follows.

 $scope.goToViewHome = function(){ 
 
 $state.go('home');
 location.reload(true); 


 }

Now this will get activated on an ng-click directive, this works perfectly in my PC but on my phone it doesn’t and I don’t understand why as I am using the Javascript method for this and Angular is javascript. I have also tried $state.reload(), $location.path(‘homePage’); but no luck with those either is this an ionic bug?


#2

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


#3

Tried that, didn’t work I don’t want to reload the current state I want to reload the state that I navigate too