Angular - Performance Optimization
What is the main purpose of using
trackBy in an ngFor directive in Angular?trackBy in an ngFor directive in Angular?ngFor doesngFor repeats a template for each item in a list, rendering them in the view.trackBytrackBy helps Angular know which items changed by uniquely identifying them, so it only updates those items instead of re-rendering the whole list.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions