这是我得到的错误消息:无法读取未定义的属性“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);,你能帮我一下吗?
发布于 2016-08-21 19:23:22
好的,所以我删除了firebase-util,然后重新安装了Firebase v3的新测试版,它起了作用。
bower uninstall firebase-util然后
bower install https://github.com/GartorwareCorp/firebase-util.git#v0.3.0gthttps://stackoverflow.com/questions/39067663
复制相似问题