A

Admin • 828.70K Points
Coach

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

  • (A) To improve performance by tracking list items
  • (B) To display index numbers
  • (C) To bind CSS styles
  • (D) To change layout structure
  • Correct Answer - Option(A)
  • Views: 14
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
trackBy helps Angular track which items have changed, improving performance.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.