angular-loading-spinner

Angular directive for ajax loading indicator. This directive uses https://github.com/urish/angular-spinner. Detects any ajax request and shows the spinner.
Homepage:
8 people use it

angular-loading-spinner

Angular directive ajax loading indicator. This directive uses urish angular-spinner as the loading indicator.

Usage

Include dependencies in your application: angular.js, spin.js, angular-spinner.js, angular-loading-spinner.js

Insert angular-spinner's us-spinner directive anywhere in your html file to be shown when there is pending ajax request and will be hidden upon completion of all ajax requests.

This directive also exposes spinnerActive model to the $rootScope with a boolean value. It can be useful if you want to hide some elements while your application is fetching data from the backend.

Read angular-spinner docs on how to customize the spinner and refer to spin.js docs for more configuration options.

Example

See plunker demo

License

Released under the terms of MIT License.

comments powered by Disqus
This page was last updated almost 3 years ago.