我不能将Angular Material与Metronic一起使用-Angular 8

时间:2019-07-06 03:54:31

标签: angular metronic

[#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>

0 个答案:

没有答案