mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
style($http): fix a semi-colon
This commit is contained in:
parent
c31df32ca0
commit
870232bd05
1 changed files with 5 additions and 4 deletions
|
|
@ -222,7 +222,7 @@ function $HttpProvider() {
|
|||
* will result in the success callback being called. Note that if the response is a redirect,
|
||||
* XMLHttpRequest will transparently follow it, meaning that the error callback will not be
|
||||
* called for such responses.
|
||||
*
|
||||
*
|
||||
* # Calling $http from outside AngularJS
|
||||
* The `$http` service will not actually send the request until the next `$digest()` is
|
||||
* executed. Normally this is not an issue, since almost all the time your call to `$http` will
|
||||
|
|
@ -409,19 +409,20 @@ function $HttpProvider() {
|
|||
* return responseOrNewPromise
|
||||
* }
|
||||
* return $q.reject(rejection);
|
||||
* };
|
||||
* }
|
||||
* }
|
||||
* };
|
||||
* });
|
||||
*
|
||||
* $httpProvider.interceptors.push('myHttpInterceptor');
|
||||
*
|
||||
*
|
||||
* // register the interceptor via an anonymous factory
|
||||
* // alternatively, register the interceptor via an anonymous factory
|
||||
* $httpProvider.interceptors.push(function($q, dependency1, dependency2) {
|
||||
* return {
|
||||
* 'request': function(config) {
|
||||
* // same as above
|
||||
* },
|
||||
*
|
||||
* 'response': function(response) {
|
||||
* // same as above
|
||||
* }
|
||||
|
|
|
|||
Loading…
Reference in a new issue