下面的代码竟然出错了:
<mat-form-field> <input matInput placeholder="输入名称"> </mat-form-field>
错误提示的莫名其妙,其实只要导入以下模块就可了:
imports: [ MatFormFieldModule, MatInputModule, ]