A

Admin • 802.91K Points
Coach

Q. What does the trackBy function optimize in *ngFor?

  • (A) Performance by tracking list items by identity
  • (B) Change detection of inputs
  • (C) Form validation
  • (D) Routing speed
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
trackBy helps Angular identify items uniquely, reducing DOM manipulations.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.