docs($http): added return to interceptors success callback

This commit is contained in:
Mikk Kirstein 2013-08-14 21:25:01 +03:00 committed by Vojta Jina
parent dfd95f0115
commit 0cb3dc8782

View file

@ -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)) {