Q. What is the purpose of the `ngFor` directive?

  • (A) To loop over a list and render items
  • (B) To conditionally render content
  • (C) To bind data from the component
  • (D) To listen to events
πŸ’¬ Discuss
βœ… Correct Answer: (A) To loop over a list and render items
Explanation: `ngFor` is used to iterate over a collection and render a template for each item.
Explanation by: Mr. Dubey
`ngFor` is used to iterate over a collection and render a template for each item.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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