【问题标题】:Angular double interpolation in template模板中的角度双插值
【发布时间】:2017-11-15 12:07:08
【问题描述】:

有一个你迭代的集合,有没有办法使用一个属性 集合中的元素并将其用作从另一个流中获取其他元素的键(如双插值)?仅来自模板。

类似:

    <tr *ngFor="let book of (books$ | async)">
     <td> {{ (text$ | async)[{{ book.title }}] }}</td>
    </tr>

我可以在哪里使用 book.title 从文本中获取内容。

【问题讨论】:

    标签: angular interpolation angular-template


    【解决方案1】:

    我制作了一个管道,它以 book.title 作为参数并在应用商店中搜索文本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-04-12
      • 1970-01-01
      • 1970-01-01
      • 2017-03-02
      • 1970-01-01
      • 2014-02-03
      • 1970-01-01
      相关资源
      最近更新 更多