Angular - Performance Optimization
Which of the following is the correct way to apply a
trackBy function named identify in an Angular template using ngFor?trackBy function named identify in an Angular template using ngFor?trackBy: functionName without parentheses.*ngFor="let item of items; trackBy: identify" correctly uses trackBy: identify. Options B and D incorrectly use trackByFn, which is not valid. *ngFor="let item of items; trackBy: identify()" incorrectly calls the function with parentheses.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions