List 聚合物铁清单及firebase收集/文件

List 聚合物铁清单及firebase收集/文件,list,collections,firebase,polymer,iron,List,Collections,Firebase,Polymer,Iron,有没有办法将聚合物firebase系列与铁质清单结合起来 我可以用firebase collection显示我的数据,但我也想用iron list来设置元素的样式 <firebase-collection data="{{games}}" location="url"> </firebase-collection> <template is="dom-repeat" items="{{games}}" as="game">

有没有办法将聚合物firebase系列与铁质清单结合起来

我可以用firebase collection显示我的数据,但我也想用iron list来设置元素的样式

<firebase-collection data="{{games}}"
                  location="url">
</firebase-collection>

<template is="dom-repeat" items="{{games}}" as="game">
    <div>
      <span>{{game.home}}</span>
      <span class="game_score">
        <span>{{game.home_score}}</span> - <span>{{game.away_score}}</span>
      </span>
      <span>{{game.away}}</span>
    </div>
    </template>

{{game.home}
{{比赛.主场得分}-{比赛.客场得分}
{{比赛。客场}

我想这只是数据绑定的问题。在webinspector中,
games
的值是否更改?你试过
data$={{{games}}
?@Kjell那真是个坏主意。您基本上是将整个对象转换为字符串。想象一下,如果这些数据是兆字节大的话。@NeilJohnRamal-嗯,是的,你说得对!让我们看看@Warri是否可以确认
游戏
在从firebase加载数据后会发生变化。然后应该直接创建铁名单…在我从firebase获得数据后,游戏不会改变。。。