flex-layout不会在宿主元素上应用内联样式,因为宿主元素是通过@HostBinding获取其flex-layout属性的
@Component({
selector: 'column-node', //flex-layout not working on host elements
host: { '[@visibility]': 'visibility' },
template: `<ng-content></ng-content>`,
})
export class Layo
我正在尝试使用https://tburleson-layouts-demos.firebaseapp.com/#/docs上提到的angular flex layout构建角度材质应用程序,我尝试了各种组合,但都不适用于我。我正在尝试建立一个工具栏下的几张卡,这应该需要大约70%的面积,中心对齐,但他们最终占用了所有的空间。我的html是 <!--The content below is only a placeholder and can be replaced.-->
<div fxLayout="column" fxLayoutAlign="s
我正在使用Angular14,并试图安装角Flex布局。
我得到了这个错误:在运行命令- ng add @angular/flex-layout之后
error Found: @angular/cdk@14.0.2
error node_modules/@angular/cdk
error @angular/cdk@"^14.0.2" from the root project
error
error Could not resolve dependency:
error peer @angular/cdk@"^13.0.0" from @angular/f