1.0.7 • Published 10 years ago

angular-request-loading v1.0.7

Weekly downloads
21
License
none
Repository
github
Last release
10 years ago

angular-request-loading

Build Status

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.

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago