Usage: $http(config)
Usage: $http(config)
Object describing the request to be made and how it should be processed.
Returns a promise object with the standard then method and two http specific methods: success and error. The then method takes two arguments a success and an error callback which will be called with a response object. The success and error methods take a single argument - a function that will be called when the request succeeds or fails respectively. The arguments passed into these functions are destructured representation of the response object passed into the then method.
Shortcut method to perform a DELETE request.
Shortcut method to perform a DELETE request.
Relative or absolute URL specifying the destination of the request
Request content
Optional configuration object
a promise of an response
Relative or absolute URL specifying the destination of the request
Relative or absolute URL specifying the destination of the request
Relative or absolute URL specifying the destination of the request
Optional configuration object
a promise of an response
Shortcut method to perform a HEAD request.
Shortcut method to perform a HEAD request.
Relative or absolute URL specifying the destination of the request
Optional configuration object
a promise of an response
Shortcut method to perform a JSONP request.
Shortcut method to perform a JSONP request.
Relative or absolute URL specifying the destination of the request
Optional configuration object
a promise of an response
Shortcut method to perform a PATCH request.
Shortcut method to perform a PATCH request.
Relative or absolute URL specifying the destination of the request
Request content
Optional configuration object
a promise of an response
Shortcut method to perform a POST request.
Shortcut method to perform a POST request.
Relative or absolute URL specifying the destination of the request
Request content
Optional configuration object
a promise of an response
Shortcut method to perform a PUT request.
Shortcut method to perform a PUT request.
Relative or absolute URL specifying the destination of the request
Request content
Optional configuration object
a promise of an response
The $http service is a core Angular service that facilitates communication with the remote HTTP servers via the browser's XMLHttpRequest object or via JSONP.
https://docs.angularjs.org/api/ng/service/$http