1

Consider the following example:

$http.post(url, data, config)

It is clear about url and data parameters. What about config I wasn't able to find in internet what set of properties the config object can have. I know of one: headers: {'Content-Type': 'application/json'}, but there can be others as well. Is there a document that describes the config objec/param property list in details?

1 Answer 1

3

That parameter is well documented on this page: https://docs.angularjs.org/api/ng/service/$http#usage

Apart from the headers property, you can set the timeout, cache, responseType among others

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.