Firebase 3 way data binding not working as expected
问题 I have an AngularJS service that returns a firebase ref. .factory('sessionManager', ['$firebase','$scope', function($firebase){ var ref=new Firebase('https://telechat.firebaseio.com/sessions'); return $firebase(ref); }]) In the controller, I have added the dependency and called $bind . $scope.items=sessionManager; $scope.items.$bind($scope,'sessions').then(function(unbind){ unbind(); }); But when I print it to the console, the returned data has a collection of functions like $add , $set ,..