A

Admin • 828.70K Points
Coach

Q. What is the role of the `trackBy` function in *ngFor?

  • (A) Improve performance by tracking items by a unique identifier
  • (B) Sort items in the list
  • (C) Filter items dynamically
  • (D) Bind events to list items
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
trackBy reduces DOM manipulations by identifying list items uniquely.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.