Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ef5d8f commit 16c7ab1Copy full SHA for 16c7ab1
src/ng/http.js
@@ -185,6 +185,10 @@ function $HttpProvider() {
185
* will result in the success callback being called. Note that if the response is a redirect,
186
* XMLHttpRequest will transparently follow it, meaning that the error callback will not be
187
* called for such responses.
188
+ *
189
+ * If your $http is scheduled from something that doesn't cause a $digest to fire then your
190
+ * request won't be sent immediately. To make sure a $http request if fired immediately, wrap your
191
+ * call around with an $scope.$apply(function(){ //make $http request here }
192
*
193
* # Shortcut methods
194
0 commit comments