mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +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 promise.then(function(response) {
|
||||
* // do something on success
|
||||
* return response;
|
||||
* }, function(response) {
|
||||
* // do something on error
|
||||
* if (canRecover(response)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue