angular-vs-repeat
angular-vs-repeat copied to clipboard
Feature request : add binding for method to be called when end of scrollbar is reached
I would like to load additional data when the end of the scrollbar is reached and there is additional data available on the server. The method would be responsible for determining if additional data is available and to fetch the data and append it to the array displayed in the repeat.
This shouldn't be a part of vs-repeat. Write another directive and put it
on the same element as vs-repeat (or it's scrollable parent) and handle
scrolling behavior there)
On Sun, Dec 6, 2015 at 7:35 PM, rekna1 [email protected] wrote:
I would like to load additional data when the end of the scrollbar is reached and there is additional data available on the server. The method would be responsible for determining if additional data is available and to fetch the data and append it to the array displayed in the repeat.
— Reply to this email directly or view it on GitHub https://github.com/kamilkp/angular-vs-repeat/issues/91.
I tried angular-scrollevents, but it seems to break the vs-repeat... I have put it on the same element as vs-repeat.
update : It works when I structure is like div[ng-scroll-event]>div[vs-repeat]>div[ng-repeat]. Would have been more elegant if I didn't need the extra div, but I can live with it.
Take a look at this infinite scroll directive:
http://www.williambrownstreet.net/blog/2013/07/angularjs-my-solution-to-the-ng-repeat-performance-problem/