Let $ionicHistory.goBack() not enter into $ionicPlatform.ready() function and display the cache page


#1

Dear all, when I use a button to launch the $ionicHistory.goBack() function, the state is go back to the previous view. However, this is a plain new view(reload) because it alway execute the content of $ionicPlatform.ready(). Is it possible to bypass this reloading activity and display the previous page (cache page) again. Thank you


#2

You can try:

scope.$on('$locationChangeStart', function(ev) {
    ev.preventDefault();
});

#3

could you show us some code of the view with the $ionicPlatform.ready call?