0
我想从Angular JS连接到Firebase。Angularfire无法定义参考
我的控制器:
.controller('mynew',['$scope', '$firebaseArray', function($scope, $firebaseArray) {
var ref = firebase.database('https://myappurl.firebaseio.com/contacts').ref();
$scope.contacts = $firebaseArray(ref);
console.log($scope.contacts);
}]);
这是正确的方法包括在database(??)
的火力分贝网址是什么?
版本: 火力地堡v3.6.9 Angularfire V2.3.0
我在做什么错?
就像一个魅力。万分感谢。有没有一个页面可以参考关于AngularJS在Firebase上查询的文档。不是Angular2。只是简单的查询。再次感谢。 – Somename
没问题。下载[AngularFire]文档(https://www.firebase.com/docs/web/libraries/angular/api.html):) – matt