Q: AngularJS form to JSON I am learning AngualrJS and am a little confused as to how to how to create a json from the form input data. I am using ng-click when the button is clicked to submit data. Not sure if this is the right way to do it.
I was trying to use this to create the json...
$http({method: 'POST',
    url: 'customers.json',
    data: $scope.customer,
}).success(function (data) {
// handle
}); 

My plunker is here: http://plnkr.co/edit/UiaG8U?p=info

A: It looks like you needed to pass in $http to the scope of the controller.
