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

  • (A) To filter items
  • (B) To style items
  • (C) To improve performance by tracking item identity
  • (D) To prevent rendering
πŸ’¬ Discuss
βœ… Correct Answer: (C) To improve performance by tracking item identity
Explanation: trackBy improves performance by tracking the identity of items.
Explanation by: Mr. Dubey
trackBy improves performance by tracking the identity of items.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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