R

Ram Sharma • 3.40K Points
Extraordinary

Q. What does the 'trackBy' function improve in *ngFor?

  • (A) Filter list items
  • (B) Improve performance by identifying unique items
  • (C) Sort elements alphabetically
  • (D) Project content into DOM
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Ram Sharma
`trackBy` helps Angular identify items uniquely to optimize rendering.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.