Merge pull request #934 from keithdmoore/patch-1

Update the docs for ion-refresher
This commit is contained in:
Adam Bradley
2014-03-27 21:08:59 -05:00

View File

@@ -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');
* });
* };
* });
* ```