Hi,
I am trying to use the code from the docs with the call to the function $ionicHistory.goBack in the controller:
// JS $scope.myGoBack = function() { $ionicHistory.goBack(); };
In my View:
<button ng-click="$ionicGoBack()" >My back button</button>
This works but the when I get “back” to the previous page it always scrolls to the top.
If I use
<ion-nav-back-button class="button-clear" ng-click="$ionicGoBack()">back button</ion-nav-back-button>
The previous page does not scroll to the top.
I have some long lists and don’t want the user to scroll to the top when going back.
Is there a way to controll this behaviour?
Thanks for any help / pointers
David