I'm using ngInfiniteScroll in my project to load large data into the UI.
Here is my HTML,
<div infinite-scroll='nextPage()'>
<div ng-repeat="app in applications">{{app.name}}</div>
</div>
In my controller,
$scope.nextPage = function(){
console.log("nextPage");
$scope.page++;
.....
}
nextPage()
method is called only once. It's not triggering after the first time.
What am I doing wrong ?