How do i add items to pull to refresh?


Hi guys,

I would like to add items to my pull to refresh from a server or web link. How would i do that? if someone could help me out or point me in the right direction i would be appreciate it.

Here’s my code:


<ion-header-bar class="bar-positive">
  <h1 class="title">Pull To Refresh</h1>
<ion-view view-title="Announcements">
  <ion-refresher on-refresh="doRefresh()">
    <ion-item ng-repeat="item in items">{{item}}</ion-item>


angular.module('ionicApp', ['ionic'])
.controller('MyCtrl', function($scope, $http) {
  $scope.items = [1,2,3];
  $scope.doRefresh = function() {
     .success(function(newItems) {
       $scope.items = newItems;
     .finally(function() {
       // Stop the ion-refresher from spinning


I’d suggest these two posts:

Should help you a lot. :smile:


And if you even want a video: