I am trying to dynamically create dom node using ngFor
on an array. The array may contain 200 elements and instead of creating 200 nodes I intend to create nodes on scroll.For example if initially it is creating 10 dom on scroll it will create next 10 dom and so on without repainting the previous 10 dom. So I presume I will need two index to set upper & lower limit.
I followed this to set a limit but not able to set a range.
So my question is it possible to set two index
in ngFor
and iterate in that range