[#Metronic]-[#Angular8]
我已正确导入[MatExpansionModule],如图所示
app.module.ts
import { MatExpansionModule } from '@angular/material';
imports: [
MatExpansionModule,
.....]
exports: [
MatExpansionModule,....
]
myapp.component.html <<这里的每个单个自定义标签都会产生错误
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
Personal data
</mat-panel-title>
<mat-panel-description>
Type name and age
</mat-panel-description>
</mat-expansion-panel-header>
<mat-form-field>
<input matInput placeholder="Name">
</mat-form-field>
<mat-form-field>
<input matInput placeholder="Age">
</mat-form-field>
</mat-expansion-panel>