Can't bind to 'ngForIn' since it isn't a known property of 'a'.
platform-browser-dynamic.js:230 Uncaught Error: Template parse errors:Can't bind to 'ngForIn' since it isn't a known property of 'a'. ("
<a href="#" [ERROR ->]*ngFor="let training in trainings" (click)="">{{training}}</a>
Property binding ngForIn not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations". ("
Solution 1:
The ngFor syntax is
let training of trainings
It is not
let training in trainings
Comments
Post a Comment