FIREBASE警告:不推荐使用Firebase.DataSnapshot.name()

时间:2016-09-20 08:15:32

标签: firebase firebase-realtime-database angularfire

firebase.js:39 FIREBASE WARNING: Firebase.DataSnapshot.name() being deprecated. Please use Firebase.DataSnapshot.key() instead.

控制台中的多个警告,参考文档

https://www.firebase.com/docs/web/api/datasnapshot/name.html

我没有使用Datasnapshot

var ref2 = new Firebase(CM_URL);
var reffyArray = $firebase(ref2).$asArray();
reffyArray.$loaded().then(function (data) {
    $scope.data.products = reffyArray;
}); // collections Object Loadedaphot

0 个答案:

没有答案