Q. What is the purpose of the 'ngFor' directive in Angular?
β
Correct Answer: (A)
To loop over a collection and render elements
Explanation: ngFor repeats an element template for each item in a list.