ng-repeat v/s md-virtual-repeat

Issue

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

When should i use one or another?

Solution

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.

Answered By – Zeeshan Hassan Memon

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published