Q. What is the purpose of the 'ngFor' directive in Angular?

  • (A) To loop over a collection and render elements
  • (B) To conditionally display elements
  • (C) To bind data to forms
  • (D) To define routes
πŸ’¬ Discuss
βœ… Correct Answer: (A) To loop over a collection and render elements
Explanation: ngFor repeats an element template for each item in a list.
Explanation by: Mr. Dubey
ngFor repeats an element template for each item in a list.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
87
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate