只是尝试一个 ngrx-store 示例应用程序。在我的组件中,我有:
<div *ngFor="#todo of todos">
{{ todo.value }}
</div>
但是进入后不显示待办事项。这是我得到的错误:
Can't bind to 'ngFor' since it isn't a known native property ("
********
<div [ERROR ->]*ngFor="let todo of todos">
{{ todo.value }}
</div>
"): App@8:11
如何显示待办事项?plunkr:http ://plnkr.co/edit/yOw4qh4aZ5d9jhg235gD?p=preview