Skip to content

Commit

Permalink
Merge pull request #934 from keithdmoore/patch-1
Browse files Browse the repository at this point in the history
Update the docs for ion-refresher
  • Loading branch information
adamdbradley committed Mar 28, 2014
2 parents a93e178 + 3b79a8a commit 83a2d5f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions js/ext/angular/src/directive/ionicContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,14 @@ function($timeout, $controller, $ionicBind) {
* .controller('MyController', function($scope, $http) {
* $scope.items = [1,2,3];
* $scope.doRefresh = function() {
* $http.get('/new-items').success(function(newItems) {
* $scope.items = newItems;
* //Stop the ion-refresher from spinning
* $scope.$broadcast('scroll.refreshComplete');
* });
* $http.get('/new-items')
* .success(function(newItems) {
* $scope.items = newItems;
* })
* .finally(function() {
* // Stop the ion-refresher from spinning
* $scope.$broadcast('scroll.refreshComplete');
* });
* };
* });
* ```
Expand Down

0 comments on commit 83a2d5f

Please sign in to comment.