Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Update http.js documentation for $http not making the request immediatel... #3996

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ng/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down