Closed ishehroze closed 4 months ago
Having an items array property in the component class
items
class SomeComponent { items = SomeType[] }
We can loop over each item of the items array inside the template using a syntax similar to as follows:
item
<element *ngFor="let item of items">{{ item }}</element>
Having an
items
array property in the component classWe can loop over each
item
of theitems
array inside the template using a syntax similar to as follows: