I noticed that the directive is expecting all the json array items for scroll repeat to be available initially. But in my application initially the json array contains only 20 items. Then if I click 'Load More..' link I will bring another 20 items, as shown below
vm.loadMoreAPIs = function() {
vm.pageOffset = vm.pageOffset + vm.pageSize;
vm.bringItems();
};
As I can get nearly 10000 jsons in the the array. I don't want to brig all at a time.
I replaced the above code in controller as,
$scope.$on('bottom-reached-before', function() {
// do whatever you want
vm.loadMoreAPIs();
});
But after reaching the end of page through scrolling, new ajax call is not getting fired and my page always shows only first 20 items even after scrolling to the end of page. Is there any fix for this?