【发布时间】:2020-04-30 12:12:38
【问题描述】:
<div [fxLayout]="fields.layoutConfig.layoutDirection + ' wrap'" fxLayout.xs="column"
[fxLayoutGap]="fields.layoutConfig.fxLayoutGap">
<ng-container [fxFlex]="50" *ngFor="let field of fields.componentConfig;" reactiveField [field]="field" [group]="form">
</ng-container>
</div>
尝试使用容器内的 [fxFlex]="50" 得到错误 Cannot read property 'setProperty' of undefined
一些问题https://github.com/angular/flex-layout/issues/1046 https://github.com/angular/flex-layout/issues/381
【问题讨论】:
标签: javascript angular typescript angular-material angular-flex-layout