I have this so far and it is working horrible, everytime I go to the bottom of the page, it reloads and throw me back to the top
<ion-content>
<ion-refresher
on-refresh="doRefresh()">
</ion-refresher>
<div ng-repeat="post in posts">
<a ng-href="#/tabs/news/{{post.site_ID}}/{{post.ID}}">
<h2 ng-bind-html="post.title"></h2>
<p>{{:: post.date | date}}</p>
</a>
</div>
<ion-infinite-scroll
on-infinite="loadMore()"
distance="1%">
</ion-infinite-scroll>
</ion-content>
and the controller
.controller('NewsCtrl', function($scope, $ionicLoading,
$stateParams, FreshlyPressed) {
$scope.posts = [];
$scope.loadMore = function() {
$scope.posts = FreshlyPressed.getBlogs($scope);
$scope.$broadcast('scroll.infiniteScrollComplete');
},
$scope.doRefresh = function() {
$scope.posts = FreshlyPressed.getBlogs($scope);
$scope.$broadcast('scroll.refreshComplete');
}
$scope.doRefresh();
});