-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ionInfiniteScroll): use event system
Fixes #661. BREAKING CHANGE: The binding for ionInfiniteScroll has changed, as well as how you finish it. If you had this code before: ```html <ion-content on-infinite-scroll="doSomething"></ion-content> ``` ```js function MyCtrl($scope) { $scope.doSomething = function(scrollDoneCallback) { doSomething(); scrollDoneCallback(); }; } ```js Now, your code should look like this: ```html <ion-content on-infinite-scroll="doSomething()"></ion-content> ``` ``js function MyCtrl($scope) { $scope.doSomething = function() { doSomething(); $scope.$broadcast('scroll.infiniteScrollComplete'); }; } ```
- Loading branch information
Showing
2 changed files
with
50 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters