我正在执行延迟加载方法。因为我遇到了这个问题
Property binding ngForOf 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".
具有以下代码
<li ngFor="let page of pager.pages" [ngClass]="{active:pager.currentPage === page}">
<a (click)="setPage(page)">{{page}}</a>
</li>
答案 0 :(得分:1)
ngFor
的语法为 *ngFor
,我想您已经忘记将*
放在{{1}之前}
ngFor