Angular directive ajax loading indicator. This directive uses urish angular-spinner as the loading indicator.
Include dependencies in your application:
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.
See plunker demo
Released under the terms of MIT License.