- Language:: Javascript
- Type:: Front End
- Context:: Using an ngIf directive with Angular
- Description – Ways to use the ngIf directive
- Snippets
Simple form with shorthand syntax:
Simple form with expanded syntax:
Form with an “else” block:
Shorthand form with “then” and “else” blocks: