如果我不想像这样直接分配我的收藏怎么办:
$scope.items = angularFireCollection(ref);
因为我需要在收到对象后在回调中访问它:
angularFireCollection(ref, function(items) {
angular.forEach(items, function(item){
angular.forEach(item.tags, function(tag){
$scope.allTags.push(tag);
});
});
$scope.items = items;
});
服务是否存在回调方法angularFireCollection
?