mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-22 05:11:51 +00:00
docs($http): added return to interceptors success callback
This commit is contained in:
parent
dfd95f0115
commit
0cb3dc8782
1 changed files with 1 additions and 0 deletions
|
|
@ -291,6 +291,7 @@ function $HttpProvider() {
|
||||||
* return function(promise) {
|
* return function(promise) {
|
||||||
* return promise.then(function(response) {
|
* return promise.then(function(response) {
|
||||||
* // do something on success
|
* // do something on success
|
||||||
|
* return response;
|
||||||
* }, function(response) {
|
* }, function(response) {
|
||||||
* // do something on error
|
* // do something on error
|
||||||
* if (canRecover(response)) {
|
* if (canRecover(response)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue