Licence
none
Version
1.0.7
Deps
1
Vulns
0
Weekly
0
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.