Skip to content

2. New control flow

Andrei Antal edited this page Oct 24, 2024 · 2 revisions

Challenge 2 - Migrate to control flow

  • Update to new control flow syntax:
    • *ngIf / else -> @if, @else, @elseif
    • *ngFor -> @for
      • use $index wherever needed
      • use build in track and remove existing trackBy functions
      • use @empty for empty lists

DOCUMENTATION

Control flow

Diffs

Clone this wiki locally