Skip to main content

List all built-in structural directives

The main built-in structural directives in Angular are:

  1. *ngIf - conditionally displays an element in the DOM.
  2. *ngFor - repeats an element for each item in a collection.
  3. *ngSwitch, *ngSwitchCase, *ngSwitchDefault - displays one of several variants depending on the value of an expression.

Conclusion: these directives control the DOM structure by adding, removing or selecting elements to render.

Short Answer

Interview ready
Premium

A concise answer to help you respond confidently on this topic during an interview.