@for
Introduction
Section titled “Introduction”@for replaces *ngFor with required track and built-in @empty support.
Example
Section titled “Example”@for (product of products; track product.id) { <div>{{ product.name }}</div>} @empty { <p>No products found.</p>}
// Local variables@for (item of items; track item.id; let i = $index, first = $first) { <div [class.highlight]="first">{{ i }}. {{ item.name }}</div>}Summary
Section titled “Summary”@for is faster and more explicit than *ngFor.”