我不知道如何用属性制作组件。你能看出是怎么回事吗?我一直收到这样的错误:“无法绑定到'val‘,因为它不是已知的原生属性”There should be a list of fruit here with a line aftereach one <template ngFor let-fruit [ngForOf</em
我在Typesript中创建了合适的成分对象,也为对象创建了合适的“模型”。尽管ngfor指令不起作用。我得到了这个错误"NG0303:无法绑定到'ngforOf‘,因为它不是浏览器中检查时已知的’a‘属性。我的模型代码constructor(public name: string, public amoun
但是我正面临这个错误,Can't bind to 'ngForOf' since it isn't a known property of 'tbody'.,我不知道它为什么会产生这个错误。在谷歌上,我发现了这个问题,,但它的解决方案对我来说行不通。请帮帮我。admin.module.tsimport { CommonModule } from '@