Structural

  • A structural directive changes the DOM layout by adding and removing DOM elements.
  • Asterisks indicate a directive that modifies the HTML
  • It is syntactic sugar to avoid having to use template elements directly

Children
  1. ngFor
  2. ngIf
  3. ngSwitch

Backlinks