I would like to specify dataType: 'json'
as in conventional jQuery $.ajax
.
Is this possible with Angular.js $http.post
?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
From http://docs.angularjs.org/api/ng.$http
So no need to set a data type it is done automatically |
|||||||||||||||||||||
|
You can use the HTTP Config object to set the headers:
|
|||||||||
|