首页
mac
it
登录
6mi
u
盘
搜
搜 索
it
mat-form-field must contain a MatFormFieldControl错误的解决方法
mat-form-field must contain a MatFormFieldControl错误的解决方法
mac
2024-01-27
34
下面的代码竟然出错了:
<
mat-form-field
>
<
input
matInput placeholder
="输入名称"
>
</
mat-form-field
>
错误提示的莫名其妙,其实只要导入以下模块就可了:
imports: [ MatFormFieldModule, MatInputModule, ]
更多专业前端知识,请上
【猿2048】www.mk2048.com
转载请注明原文地址: https://mac.8miu.com/read-484111.html
最新回复
(
0
)