@for (
let
item of items;index as
i;
trackBy: trackByFn
) {
- {{item.name}}
}
@empty {
The collection is empty
}
@for (item of collection; track item.id; let index = $index, first = $first; let last = $last, even = $even, odd = $odd; let count = $count) {
- {{item.name}} index={{index}} first={{first}} last={{last}} even={{even}} odd={{odd}} count={{count}}
}
@for (item of
emptyCollection; track item.id;) {
- {{item.name}}
}
@empty {
The collection is empty
}
@for ( item of items; track item){
}
@for (item of items; let i = $index; track block) {}
@for (item of items; let i = $index; let count = $count; track block) {}