Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ng-repeat v/s md-virtual-repeat

Difference between angular ng-repeat and angular material md-virtual-repeat?

When should i use one or another?

like image 693
user3802040 Avatar asked Feb 22 '16 15:02

user3802040


1 Answers

ng-repeat renders all elements in list, its less performant on large lists.

md-virtual-repeat renders list what is visible on viewport, it doesn't render all elements of list, when user scrolls in case of large lists it then seemlesly renders other elements, this way its performant and should be used when working with large lists.

like image 152
Zeeshan Hassan Memon Avatar answered Dec 10 '22 00:12

Zeeshan Hassan Memon