angular.js icon indicating copy to clipboard operation
angular.js copied to clipboard

ng-repeat virtual scroll

Open geekyme opened this issue 13 years ago • 10 comments

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 avatar Oct 03 '13 03:10 geekyme

@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/

allaud avatar Oct 26 '13 20:10 allaud

+1

heiwen avatar Dec 16 '13 16:12 heiwen

+1

Dreamwalker666 avatar Dec 17 '13 11:12 Dreamwalker666

+1

pawelszymanski avatar Jan 22 '14 22:01 pawelszymanski

+1

ncammarata avatar Feb 04 '14 18:02 ncammarata

+1

aliatsis avatar Feb 18 '14 01:02 aliatsis

+1

vbourdeix avatar Mar 28 '14 09:03 vbourdeix

+1

DLamb-MagicLeap avatar Jun 19 '14 18:06 DLamb-MagicLeap

+1

scamden avatar Jul 17 '14 00:07 scamden

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.

Narretz avatar Jul 17 '14 09:07 Narretz