我收到此错误消息:
Can’t bind to ‘primary’ since it isn’t a known property of ‘button’.
我正在使用你的aspnetcore-spa角度生成器. BrowserAnimationsModule和ButtonsModule在我的app.module中导入并在导入中注册.我的所有角度和剑道包都是最新版本.
另外,当我从< button>中删除[primary] =“true”时,错误消失了.之后,我再次添加[primary] =“true”并且(没有刷新页面,HMR重建)它工作正常.而且,如果我刷新页面,错误会再次出现.
有解决方案吗
提前致谢.
解决方法
你的按钮看起来应该是这样的:
<button kendoButton [primary]="true">Primary</button>
别忘了’kendoButton’.