If you are in a Ionic project and you want to move your screen (to scroll it) to the top or to the bottom, you just need to receive the $ionicScrollDelegate and call the methods scrollTop or scrollBottom:
angular.module('mymodule').controller('MyCtrl', function($scope, $ionicScrollDelegate) {
$ionicScrollDelegate.scrollTop();
$ionicScrollDelegate.scrollBottom();That's it :)
Best regards,
Adriano Schmidt

Nenhum comentário:
Postar um comentário