Cannot read the property of undefined $ionicScrollDelegate


#1

I want to scroll on the top , but it give me the error cannot read the property ScrollTop of undefined.


#2

you have to include $ionicscrolldelegate on your controller

.controller('myCtrl', function($scope, $stateParams, $ionicScrollDelegate) {})