Error: src/app/app.component.html:7:57 - error TS2345: Argument of type ‘Event‘ is not assignable to
程序开发
2023-09-14 20:33:15
Error: src/app/app.component.html:7:57 - error TS2345: Argument of type ‘Event’ is not assignable to parameter of type ‘KeyboardEvent’.
Type ‘Event’ is missing the following properties from type ‘KeyboardEvent’: altKey, char, charCode, code, and 16 more.
7
~~~~~~
src/app/app.component.ts:5:16
5 templateUrl: ‘./app.component.html’,
~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component AppComponent.
有朋友学angular吗???这是怎么回事啊???
我是按照编译器推荐的方式解决的
Change Appcomponent.inPut() signature然后就成功了,但是并不知道什么原理,也不知道解决的对不对。
有大神可以解答嘛!!
标签:
上一篇:
ajax怎么添加loading,Ajax加载数据时异步添加loading加载动画
下一篇:
相关文章
-
无相关信息