That might be strange but I need to specify some default POST data for my $resource using the factory method of the module.
Does anyone have an idea of how to do that in
Wrapper function will work.
function myPost(data) { return $http.post('http://google.com', angular.extend({default: 'value'}, data)) } myPost().success(function(response) { ... });