how to set a custom header on the request?
Answer / Vijay Kumar
To set a custom header on a request in AngularJS, you can use the $http service's config object. Here is an example: `$http({url: '...', headers: {'Custom-Header': 'Value'}});`
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between angular 1 and angular 2?
How to make Http get request from AngularJS with an example?
Explain spa architecture in angularjs?
What is a routing in angular js?
What is event distner and host distner in angular?
How will you explain auto bootstrap process in angularjs?
What is angular cli?
How does oauth 2.0 work?
How to debug AngularJS app in browser?
How to hide or show a div in angularjs?
What is lazy loading angular?
What is the use of ng-cloak directive in angularjs?