From e63cfcefe00ec5bfa62f42e1f5a794e216a0b53d Mon Sep 17 00:00:00 2001 From: Justin Noel Date: Sat, 19 Apr 2014 08:50:21 -0500 Subject: [PATCH] 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. --- js/angular/directive/infiniteScroll.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/angular/directive/infiniteScroll.js b/js/angular/directive/infiniteScroll.js index 3c63afb6e5..034aebe885 100644 --- a/js/angular/directive/infiniteScroll.js +++ b/js/angular/directive/infiniteScroll.js @@ -36,6 +36,10 @@ * $scope.$broadcast('scroll.infiniteScrollComplete'); * }); * }; + * + * $scope.$on('stateChangeSuccess', function() { + * $scope.loadMore(); + * }); * } * ``` *