Q. What is the purpose of the 'trackBy' function in *ngFor?
β
Correct Answer: (A)
To optimize rendering by tracking items by unique identifier
Explanation: trackBy helps Angular detect which items changed to minimize DOM updates.