Angular's _____ directive is used to repeat a portion of the DOM tree for each item in a list.

  • *ngFor
  • *ngIf
  • *ngInclude
  • *ngSwitch
Angular's *ngFor directive is used to repeat a portion of the DOM tree for each item in a list. It's commonly used for rendering lists of items, iterating over arrays, and displaying dynamic content based on data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *