$httpBackend

  1. service in module ng

HTTP backend used by the service that delegates to XMLHttpRequest object or JSONP and deals with browser incompatibilities.

You should never need to use this service directly, instead use the higher-level abstractions: $http or $resource.

During testing this implementation is swapped with mock $httpBackend which can be trained with responses.

doc_AngularJS
2016-03-29 16:10:23
Comments
Leave a Comment

Please login to continue.