如何使用FirebaseArray合并两个查询的结果

时间:2016-03-04 07:09:12

标签: javascript angularjs firebase angularfire

如何使用FirebaseArray合并两个查询的结果

我从firebase获取了数据

$scope.concepts = firebasearray(ref);

以类似的方式从第二个firebase查询中获取数据。

两者都在显示列表。 但是第二个列表显示了最后一个元素,并且它对第一个ref调用的每个元素都重复相同。

在html中

<li ng-repeat="(concept) in concepts">
<h3 ng-model="concept.name">{{concept.conceptname}}</h3>
<div class="row" ng-repeat="count in count">
<a ng-href="#/edit/{{concept.$id}}/" target="_blank">Page {{count.id}}</a>
</div>
</li>

firebase结构是:

Concept:
 ConceptId
   ConceptName

Content
   ConceptId
      ContentId
          Page id
             Text

如何从另一个数据库结构中获取页面ID以显示从另一个数据库结构获取的概念名称?

0 个答案:

没有答案
相关问题