πŸ“Š Angular
Q. What is the role of the `trackBy` function in *ngFor?
  • (A) Improve performance by tracking items by a unique identifier
  • (B) Sort items in the list
  • (C) Filter items dynamically
  • (D) Bind events to list items
πŸ’¬ Discuss
βœ… Correct Answer: (A) Improve performance by tracking items by a unique identifier

Explanation: trackBy reduces DOM manipulations by identifying list items uniquely.

Explanation by: Mr. Dubey
trackBy reduces DOM manipulations by identifying list items uniquely.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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