我实现了以下角度材质元素,但它们在页面上不可见。没有错误,transpiled代码显示在开发人员控制台中,但元素在页面上不可见。
<mat-form-field>
<mat-label>Sizes</mat-label>
<mat-select [(value)]="item.size" class="text-center" (selectionChange)="showSize($event.value)">
<mat-option *ngFor="let size of staticData.sizes" [value]="size">
{{size}}
</mat-option>
</mat-select>
</mat-form-field>