Q. Which directive is used for looping in Angular templates?

  • (A) *ngIf
  • (B) *ngSwitch
  • (C) *ngFor
  • (D) ngLoop
πŸ’¬ Discuss
βœ… Correct Answer: (C) *ngFor
Explanation: *ngFor is used to iterate over a collection in templates.
Explanation by: Kartik Sharma
*ngFor is used to iterate over a collection in templates.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
27
Total Visits
πŸ“½οΈ
7 mo ago
Published
πŸŽ–οΈ
Kartik Sharma
Publisher
πŸ“ˆ
99%
Success Rate