angular-request-loading

1.0.7 • Public • Published

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.

/angular-request-loading/

    Package Sidebar

    Install

    npm i angular-request-loading

    Weekly Downloads

    1

    Version

    1.0.7

    License

    none

    Last publish

    Collaborators

    • christian_fei