0

这是我收到的错误消息:无法读取未定义的属性 '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);

你能帮我解决这个问题吗?

4

1 回答 1

1

好的,所以我删除了 firebase-util,然后重新安装了 Firebase v3 的新 beta 版本,它工作正常。

bower uninstall firebase-util

然后

bower install https://github.com/GartorwareCorp/firebase-util.git#v0.3.0gt
于 2016-08-21T19:23:22.373 回答