这是我得到的错误消息:无法读取未定义的属性'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);
能帮助我吗?
答案 0 :(得分:1)
好的,所以我删除了firebase-util,然后为Firebase v3重新安装了新的测试版,它运行良好。
bower uninstall firebase-util
然后
bower install https://github.com/GartorwareCorp/firebase-util.git#v0.3.0gt