AngularJS Firebase $add is not a function
问题 I try to push a new record to my Firebase. But everytime I receive a console error like this: $scope.contacts.$add is not a function Here is my code: app.controller('contactsCtrl',['$scope','$firebaseObject',function($scope,$firebaseObject){ var ref = new Firebase("https://<database_details>.firebaseio.com/contacts"); $scope.contacts = $firebaseObject(ref) $scope.addContact = function(){ $scope.contacts.$add({ name: $scope.name, address: $scope.address, telephone: $scope.telephone, company: