1.0.7 • Published 8 years ago

angular-request-loading v1.0.7

Weekly downloads
21
License
none
Repository
github
Last release
8 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

8 years ago

1.0.6

8 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago