Which directive is used for looping in Angular templates?

  1. *ngIf
  2. *ngSwitch
  3. *ngFor
  4. ngLoop
Correct answer *ngFor

Explanation

*ngFor is used to iterate over a collection in templates.

By Admin · · 20 views