diff options
| -rw-r--r-- | src/ng/http.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ng/http.js b/src/ng/http.js index 443daf83..ea74f85b 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -221,6 +221,10 @@ function $HttpProvider() { * will result in the success callback being called. Note that if the response is a redirect, * XMLHttpRequest will transparently follow it, meaning that the error callback will not be * called for such responses. + * + * If your $http is scheduled from something that doesn't cause a $digest to fire then your + * request won't be sent immediately. To make sure a $http request if fired immediately, wrap your + * call around with an $scope.$apply(function(){ //make $http request here } * * # Shortcut methods * |
