-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow multiple promises at a time?? #53
Comments
If you are using a regular promise chain then just assign the promise from the last then() to cg-busy like: $scope.myBusyPromise = $http(...).then(function(data){
...
}).then(function(data){
...
}).then(function(data){
...
}).then(function(data){
....
}); |
If they're all-at-once instead of in-a-row then just use $q.all() |
@cgross could you give an example of how to use $q.all()? I am in a situation where I have a dynamic number of calls being made and would like the loading icon to be displayed until they are all complete. Thanks in advance. |
@naysayer example:
The spinner will be shown until all the promises will be resolved. Note the promises cab be run in parallel. |
I want to use angular-busy loader for a time of 5 successive requests , can i use it ?? then how??
(or)
can i include multiple promises at a time?
The text was updated successfully, but these errors were encountered: