πŸ“Š Angular
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

πŸ‘οΈ
43
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate