@if and @for

@if shows part of a template only when a condition is true, with @else for the other case. @for repeats part of a template for each item of a list, with track to tell the items apart, and @empty for an empty list.

Updated

Cheat sheet: @if and @for
Category
Angular
Level
Apprentice
Tags
@for, @if, angular