Angular - Directives
Which of the following is the correct syntax to use
*ngFor to loop over a list named fruits?*ngFor to loop over a list named fruits?*ngFor uses let variable of list to iterate over the list.*ngFor="let fruit of fruits" uses let fruit of fruits, which matches the correct syntax. *ngFor="let fruit in fruits" uses 'in' which is incorrect in Angular templates.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions