【发布时间】:2015-06-22 13:30:34
【问题描述】:
我想在帖子数据中显示一个对象内容(cmets)(使用 firebase-collection): 这是firebase中帖子的结构:
"Publication" : {
"date":"22-06-2015",
"content" : "post example",
"comments": {
//a post has too many comments on it
}
}
我的目标是添加另一个 dom-repeat 以显示 cmets,但我什么都看不到。 这是代码示例(我提到的第一个模板可以正常工作)
<template is="dom-repeat" items="{{posts}}" as="post">
<!-- Content here is appearing correctly -->
<template is="dom-repeat" items="{{post.comments}}" as="commentaire">
<span>{{commentaire.date}}</span>
</template>
</tempalte>
我遵循了聚合物迁移文档但没有结果,如果有任何解决方案,我将不胜感激。
【问题讨论】:
标签: polymer polymer-1.0