In your controller you'll need to do something like this. Where you are passing your POST request as a parameter of the save()
function. Working jsFiddle. You can verify this using Chrome's Dev Tools under Networks.
Have a look at the AngularJS $resource documentation, there are some examples of how to make a POST call to the API.
services.factory('AngularIssues',
function($resource){
return $resource('/echo/json/', {} ,{
get:{method:'GET' , params: {id: '@id'} }
} );
});
services.controller('AppController', ['$scope', 'AngularIssues',
function($scope, AngularIssues) {
AngularIssues.save({ "theArray": [{ name: "Object 1" }, { name: "Object 2" }] })
.$promise.then(function(res) {
$scope.done = "I AM DONE!";
});
}]);