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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Performance by tracking list items by identity
Explanation: trackBy helps Angular identify items uniquely, reducing DOM manipulations.
Explanation by: Mr. Dubey
trackBy helps Angular identify items uniquely, reducing DOM manipulations.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
73
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate