Skip to content
masterclass Buddy

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.

Subscribe
  • @empty
  • $count
  • $index
  • $first
  • $last
  • $even
  • $odd
  • TrackByFunction

Source: @for • Angular. Checked 2026-11-03.