File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ function $HttpProvider() {
222
222
* will result in the success callback being called. Note that if the response is a redirect,
223
223
* XMLHttpRequest will transparently follow it, meaning that the error callback will not be
224
224
* called for such responses.
225
- *
225
+ *
226
226
* # Calling $http from outside AngularJS
227
227
* The `$http` service will not actually send the request until the next `$digest()` is
228
228
* executed. Normally this is not an issue, since almost all the time your call to `$http` will
@@ -409,19 +409,20 @@ function $HttpProvider() {
409
409
* return responseOrNewPromise
410
410
* }
411
411
* return $q.reject(rejection);
412
- * };
413
- * }
412
+ * }
413
+ * };
414
414
* });
415
415
*
416
416
* $httpProvider.interceptors.push('myHttpInterceptor');
417
417
*
418
418
*
419
- * // register the interceptor via an anonymous factory
419
+ * // alternatively, register the interceptor via an anonymous factory
420
420
* $httpProvider.interceptors.push(function($q, dependency1, dependency2) {
421
421
* return {
422
422
* 'request': function(config) {
423
423
* // same as above
424
424
* },
425
+ *
425
426
* 'response': function(response) {
426
427
* // same as above
427
428
* }
You can’t perform that action at this time.
0 commit comments