![]() |
VOOZH | about |
In this article, we are going to see what is NgFor in Angular 10 and how to use it.
NgFor is used as a structural directive that renders each element for the given collection each element can be displayed on the page.
Syntax:
<li *ngFor='condition'></li>
NgModule: Module used by NgForOf is:
Selectors:
Approach:
Example 1:
Output:
👁 ImageExample 2:
Output:
👁 ImageReference: https://v17.angular.io/api/common/NgForOf