Question · Angular course · Module 1: Introduction to Angular
New Control Flow
Which syntax is the new way of conditionally rendering in an Angular 19 template?
Answer options
- *ngIf="condition"
- @if (condition) { ... }
- v-if="condition"
- {#if condition}
Show the answer
Correct answer:
- @if (condition) { ... }