【发布时间】:2018-05-07 12:38:50
【问题描述】:
这个问题已经说过了,但不幸的是没有答案对我有用。
这是我的问题(角度 5):
<option
*ngFor="let country in countries"
[value]="country.id" >
{{'page.choose_country' | translate}} *
</option>
我有一个简单的代码,但它仍然显示这个错误:
无法绑定到“ngForIn”,因为它不是“option”的已知属性。
它不接受 *ngFor 在选择(我在输入相同的结果测试)
我找到了几个答案,例如 commModule 和 bowersModule 需要导入模块或放入 b..... 我试图在这里找到解决方案,但没有任何效果。
我希望你能理解我一点,尽管我的英语很吓人。 感谢您的回复
【问题讨论】:
标签: angular angular-template angular4-forms