mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Update infiniteScroll Example
Add Sample of Automatically Loading First Set of Data. Since the new `ion-infinite-scroll` does not automatically load data, devs need to see how to kick it off the first time.
This commit is contained in:
4
js/angular/directive/infiniteScroll.js
vendored
4
js/angular/directive/infiniteScroll.js
vendored
@@ -36,6 +36,10 @@
|
||||
* $scope.$broadcast('scroll.infiniteScrollComplete');
|
||||
* });
|
||||
* };
|
||||
*
|
||||
* $scope.$on('stateChangeSuccess', function() {
|
||||
* $scope.loadMore();
|
||||
* });
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user