<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
最佳答案
你不应该对 fxLayout
使用属性绑定(bind)和 fxLayoutGap
.
关于javascript - ng-container Angular 9 Flex 布局无法读取未定义 fxFlex 问题的属性 'setProperty',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61523106/