DEV Community

Discussion on: 3 Ways to Render Large Lists in Angular

Collapse
 
shhdharmen profile image
Dharmen Shah

Hey @gc_psk, Great article!

I had doubt in one thing, in your code for Progressive Rendering, somewhere around line 10, you have this condition:

if (n >= length) {

but I couldn't see any variable with name of length. Can you please check?

Collapse
 
gc_psk profile image
Giancarlo Buomprisco

Hi Dharmen, length is passed as an argument. It represents the length of the list being rendered :)

Collapse
 
shhdharmen profile image
Dharmen Shah

Oh, Gothcha... 😅