I am currently struggling to successfully submit a form to Firebase. I have experimented with various event listeners and methods of calling the function, but so far I have been unable to send the data to Firebase. Here is my current code:
var firebaseRef = new Firebase("https://site.firebaseio.com/things");
var postRef = firebaseRef.push();
$scope.submitPost = function(){
firebaseRef.push = ({Title: $scope.title, Description: $scope.moreinfo, Email: $scope.email, Number: $scope.number, Date: $scope.rtime});
console.log('done');
};
HTML
//divs all look like this for different inputs
<div class="form-group">
<label for="phone">Phone Number</label>
<input id="phone" ng-model="phone"
type="text>
</div>
Submit