angular-vs-repeat icon indicating copy to clipboard operation
angular-vs-repeat copied to clipboard

Feature request : add binding for method to be called when end of scrollbar is reached

Open rekna1 opened this issue 10 years ago • 3 comments

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.

rekna1 avatar Dec 06 '15 18:12 rekna1

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.

kamilkp avatar Dec 06 '15 18:12 kamilkp

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.

rekna1 avatar Dec 06 '15 19:12 rekna1

Take a look at this infinite scroll directive:

http://www.williambrownstreet.net/blog/2013/07/angularjs-my-solution-to-the-ng-repeat-performance-problem/

alexol91 avatar Mar 16 '16 17:03 alexol91