Can't bind to 'ngForIn' since it isn't a known property of 'li'. error coming for no reason

Viewed 651

this is my code that I was stuck on:

<ul>
  <li *ngFor="let item in items">{{item.Title}}</li>
</ul>

1 Answers

There is issue with the *ngFor syntax. Do like this:

<ul>
  <li *ngFor="let item of items">{{item.Title}}</li>
</ul>

in is replaced with of

Related