mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-13 08:56:40 +08:00
docs($http): added return to interceptors success callback
This commit is contained in:
committed by
Vojta Jina
parent
dfd95f0115
commit
0cb3dc8782
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user