Angular 2 ngFor slow for large data sets

835 views
Skip to first unread message

Carlos Esteban Lopez Jaramillo

unread,
Dec 15, 2015, 10:32:43 AM12/15/15
to AngularJS
Hi, i have a simple list of names with 240 of them, the ngFor directive in angular 2 tries to show them all at once which as you would imagine generates a performance drawback, the issue is that it's blocking the screen for 5 secs!

In angular 1, angular material had virtual repeat that only instantiated how many items it could show +1 and in scroll it just used the one that left the screen to show the next one that should be showing, that way it would avoid instantiating a whole lot of items in DOM, thus giving a whole lot of performance.

Angular material is soo far to be implemented in angular 2, will angular staff give a solution to this?

Pavlyna Bevz

unread,
Mar 18, 2016, 7:29:13 AM3/18/16
to AngularJS
The same problem. :(

Günter Zöchbauer

unread,
Mar 18, 2016, 10:20:51 AM3/18/16
to AngularJS
What browser?
devMode/prodMode?

IE is known to be very slow in devMode.
Reply all
Reply to author
Forward
0 new messages