Ionic Pull To Refresh HELP

Please help master,

Tried to create pull to refresh action using ionic but seem it does not work, the icon just keep show and nothing happen.

Anyone can help me?

Here is the code.


<ion-header-bar align-title="center" class="bar-stable">
  <h1 class="title">Latest Items</h1>
  <button class="button button-clear button-positive" ui-sref="addlist">New</button>
<ion-view title="Terbaru">
      <ion-refresher on-refresh="doRefresh()">
        pulling-text="Pull to refresh..."
      <label class="item item-input">
        <i class="icon ion-search placeholder-icon"></i>
        <input type="text" name="" value="" placeholder="Search">
      <div class="list card" ng-repeat="x in data" type="item-text-wrap" href="#/tab/chat/{{}}">
          <div class="item item-avatar">
            <img data-ng-src="data:image/png;base64,{{x.photopath}}">

          <div class="item item-body">
            <img class="full-image" data-ng-src="data:image/jpeg;base64,{{x.imagepath}}">
              <a href="#" class="subdued">1 Like</a>
              <a href="#" class="subdued right">5 Comments</a>


angular.module('ionicApp.controllers', [])

.controller('AddListCategoryCtrl', function($scope, $http) {
    var xhr = $http({
      method: 'post',
      url: ''
      $ =;
    $scope.doRefresh = function(){

you do not need this:

are there any errors in the javascript console?


I got this working, as you state, i take out $scope.$apply() and everything work.

Thank you.