Signup for the Ionic Newsletter to get the latest news and updates!

  • Nico Hernandez Torres

    Hi, There is a way to refresh the list down?

    • Ramadhevi Rk

      append items to the end of $scope.items!!!

      $scope.doRefresh = function() {
      PersonService.GetNewUser().then(function(items){
      $scope.items = items.concat($scope.items);

      //Stop the ion-refresher from spinning
      $scope.$broadcast(‘scroll.refreshComplete’);
      });
      };

      just do as

      $scope.doRefresh = function() {
      PersonService.GetNewUser().then(function(items){
      $scope.items = $scope.items.concat(items);

      //Stop the ion-refresher from spinning
      $scope.$broadcast(‘scroll.refreshComplete’);
      });
      };

      • Lauro Rafael

        How do I update only new records?
        So it is replicating all the json records.
        Help… tnks

  • Ramadhevi Rk

    hello Andrew!!
    I have been following your articles for a while.. Which are elegant and useful.. keep delivering the articles!

    I need some suggestions on this!
    I have requested initially 10 products from my rest api service. How to request for next 10 products when ion-refresher gets called? i need to repeat it for displaying 100 products by Requesting 10 products each time..

    • Sergey Shvaitser

      just use collection-repeat instead ng-repeat

  • The Down Country

    I get a concat error when I try the code.

  • Shivam01

    Hi Andrew,
    I am stuck on some cases , suppose I deleted some or single item of list from web application , then come over mobile app (iOS) , what i see that the duplicate list of items will appear at bottom for 3 seconds and then move to the left side, then entire list will properly appear , is that way of pulling data from web services when deleted from web.

    And over the device delete task in ios device working fine , as I am doing swipe left and button of delete bla bla bla.

    So why its UI not supporting above I mentioned case.

    Regards
    Shivam

  • http://cauealmeida.com Cauê Almeida

    Great. Is it possible to broadcast the scroll.refreshComplete from a service?

  • Rako Nda ᵀᴴᴱ ᴼᴿᴵᴳᴵᴻᴬᴸ

    what if we want to add the new data in head of array ?

    • AfterColleGE

      you can use array.unshift(item)

  • Filbert Sugianto Manunggal

    Hi andrew,

    My name is filbert. I have been trying to use ionic refresher. it completely work well in web (using ionic serve). But when I build apk and I am trying in my phone. I can’t drag down the refresher. do you know why?

  • Lauro Rafael

    How do I update only new records?
    So it is replicating all the json records. Tnks

  • Abraham

    This does not work, i’m trying to use the refresher in my ionic app to send data via API but the

    refresher method gets fired more than once even when i call scroll.refreshComplete event, really weird, an ionic issue i suppose.