【问题标题】:Firebase Util NormalizedCollection error with AngularFireAngularFire 的 Firebase Util NormalizedCollection 错误
【发布时间】: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


    【解决方案1】:

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

    bower uninstall firebase-util
    

    然后

    bower install https://github.com/GartorwareCorp/firebase-util.git#v0.3.0gt
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-22
      • 1970-01-01
      • 1970-01-01
      • 2013-10-18
      • 2016-04-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-11
      相关资源
      最近更新 更多