Angular - Directives
How can you use
*ngFor to display only even-indexed items from a list named numbers?*ngFor to display only even-indexed items from a list named numbers?*ngFor does not support filtering directly, so use *ngIf inside the loop.
Check if index modulo 2 equals 0 to show even-indexed items.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions