Saturday, December 2, 2017

Can't bind to 'ngFor' since it isn't a known property of 'li'.

This error stems from missing the let keyword. This...

<li *ngFor="president of presidents">

 
 

...needed to become this:

<li *ngFor="let president of presidents">

No comments:

Post a Comment