ng-repeat virtual scroll
Hi guys,
is it possible for ng-repeat to have optional arguments to enable virtual scrolling? i.e. only elements in the viewport are rendered. I think this will allow us to scroll through a big list of items.
The closest implementation I see is https://github.com/stackfull/angular-virtual-scroll which introduces a lot of css problems.
@geekyme I had the same problem with large dataset and terrible ng-repeat performance. And I had my own solution: http://allaud.github.io/quick-ng-repeat/
+1
+1
+1
+1
+1
+1
+1
+1
I don't thinkt it's sensible to have something like this in core. At the bottom of it, ng-repeat simply renders a list of elements. Virtual scrolling additionally must make assumptions about the scroll container, the viewport size, the layout and the size of the elements etc. It's out of scope for a core directive to provide a solution for all the different use cases, e.g. when your ng-repeat is rows of text with the same height, it's easier to do this then with an image grid like masonry. This problem is best solved by 3rd party modules that cater for specific use cases.