You can always do
$scope.$watch(function() { return $http.pendingRequests.length === 0},
handleAjaxStatusChanged)
and handleAjaxStatusChanged will get called with a boolean whenever any
ajax request via $http starts or all requests are finished.
The only downside is that the "pendingRequests" property is documented as
"primarily meant to be used for debugging purposes".
On Tuesday, June 10, 2014 3:37:36 PM UTC+2, madhu sudhan wrote:
>
> I have started some work on Angularjs. In jquery we have ajaxComplete, to
> know if all the ajax request's are completed, in same way do we have
> anything in Angularjs.
>
> I have multiple controllers talking to serive, I need to know once the
> Asyn request from all the controllers are completed. I did read about
> $http, $q and $http.interceptors, nothing that I understood.
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.