Angular 8 Interview Questions and Answers
The Best LIVE Mock Interview - You should go through before Interview
Experienced / Expert level questions & answers
Ques 1. What is the purpose of trackBy in ngFor?
The trackBy function is used in ngFor to improve the performance of rendering by helping Angular identify which items have changed, been added, or been removed in a list.
Example:
*ngFor='let item of items; trackBy: trackByFunction'
Is it helpful?
Add Comment
View Comments
Most helpful rated by users: