【问题标题】:Angular flex layout how to conditionally add fxLayoutAlignAngular flex布局如何有条件地添加fxLayoutAlign
【发布时间】:2019-07-19 00:01:48
【问题描述】:

这是我的代码

<div fxLayout="row"
     fxLayoutAlign="end center">

我想给 fxLayoutAlign 添加一个条件。我不知道该怎么做。谁能帮忙?

我尝试了以下方法:

<div fxLayout="row"
     fxLayoutAlign="isCondition? 'start center' : 'end center'">

但没有任何效果

谢谢

【问题讨论】:

    标签: angular6 angular-flex-layout


    【解决方案1】:

    这对我有用。 我在方括号中使用了 propertyBinding。

    【讨论】:

      猜你喜欢
      • 2021-12-28
      • 2018-06-17
      • 1970-01-01
      • 2011-10-30
      • 2020-09-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-16
      相关资源
      最近更新 更多