Built-in control flow
Learn Built-in control flow (Module 5 · Templates and Data Binding, Angular) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Conditional rendering with @if and @else • Conditional rendering shows markup only when a condition is true. The built-in @if block (Angular 17+) replaces the old *ngIf. Add @else if and @else for other branches. It reads like normal code and needs no imports.