angular-request-loading
v1.0.7
Published
angular-request-loading =======================
Downloads
2
Readme
angular-request-loading
npm install --save angular-request-loading
Sets a loading
property on the $rootScope
to show a loader
while resource are being fetched.
Example integration
angular.module('app', ['angular-request-loading'])
.config(function(LoadingRequestInterceptorProvider, $httpProvider){
LoadingRequestInterceptorProvider.setPrefix('customPrefix') /* optional */
LoadingRequestInterceptorProvider.blacklist(/blacklisted$/) /* optional */
$httpProvider.interceptors.push('LoadingRequestInterceptor')
})
and in your views you can use it like this:
<loader loading="loadingRequest"/>
UMD
This is an UMD package.
License
Do whatever you please with this.