Reputation: 421
headers for $resource is available since AngularJS
The format is
$resource('url/to/json', {}, {
get: {
method: 'GET',
headers: { 'something': 'anything' }
}
});
Above is working for Get Method but i would like to set custom header with $resource POST method
Upvotes: 0
Views: 63