ishehroze / angular-six-test

This repository contains angular 6 excercises for me and mohin bhai
https://ishehroze.github.io/angular-six-test/
0 stars 0 forks source link

Added a new component that loops over some names #5

Closed ishehroze closed 4 months ago

ishehroze commented 4 months ago

Having an items array property in the component class

class SomeComponent {
  items = SomeType[]
}

We can loop over each item of the items array inside the template using a syntax similar to as follows:

<element *ngFor="let item of items">{{ item }}</element>