Angular · Directive
@for
The Angular @for block renders a template for each item in a collection. It requires track to identify items and can show @empty content when the collection has no items.
Last updated
Syntax
@for (item of items; track item.name) { ... } @empty { ... }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
@empty$count$index$first$last$even$oddTrackByFunction