【发布时间】:2018-03-13 21:32:07
【问题描述】:
因此,在我的 Angular JS Web 应用程序中,我有一个函数调用 firebase 数据库中名为 orderedPlayers 的节点并将其作为数组返回,如下所示:
$firebaseArray(orderedPlayers)
.$loaded(function(loadedPlayers) {
// function in here
});
尝试在云功能中执行类似操作时,我遇到了问题。有没有办法将players 节点作为数组返回?
我知道我可以按如下方式访问数据库:
admin.database().ref('orderedPlayers');
但是$firebaseArray 不起作用。
【问题讨论】:
标签: angularjs firebase firebase-realtime-database web-applications google-cloud-functions