diff options
| author | sanfords | 2013-12-20 14:21:13 -0700 |
|---|---|---|
| committer | Vojta Jina | 2013-12-20 16:23:06 -0800 |
| commit | 870232bd05f86fc534a47c2c17b0fbf999a9d087 (patch) | |
| tree | ac2de5d688ca618e21e5d70036b2f7cf4381d440 /src | |
| parent | c31df32ca07a3d24ee79487588bf48982e922cf6 (diff) | |
| download | angular.js-870232bd05f86fc534a47c2c17b0fbf999a9d087.tar.bz2 | |
style($http): fix a semi-colon
Diffstat (limited to 'src')
| -rw-r--r-- | src/ng/http.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ng/http.js b/src/ng/http.js index e7bbb8bc..3aaad7a8 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -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 * } |
