【发布时间】:2016-08-21 18:42:05
【问题描述】:
这是我收到的错误消息:无法读取未定义的属性“NormalizedCollection”
我用bower install firebase-util 下载了它,并将它插入到我的 Ionic 项目中(在索引页中)。
angular.module('starter')
.controller('ProjetsEncoursCtrl', function($scope,$firebaseArray, $ionicListDelegate, $ionicHistory,$ionicPopup, $localStorage, $timeout, liste_demandes, infos_demandes) {
var ref = firebase.database().ref();
var nc = new firebase.util.NormalizedCollection(
ref.child('accounts/'+$localStorage.accountId),
ref.child('demandes')
).select('demandes.ajout_le', 'demandes.localisation')
.ref();
$scope.items = $firebaseArray(nc);
你能帮我解决这个问题吗?
【问题讨论】:
标签: firebase firebase-realtime-database angularfire firebase-util