Skip to content

Glossary: Angular Basics

@if / @else

Also written: @if, @else, @else if, *ngIf

A control flow block that shows its part of the template only when a condition is true. `@else if` and `@else` provide the other choices.

Where the book teaches it