You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

ng-loading-spinner

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-loading-spinner

Spaha loading spinner

1.0.3
npmnpm
Version published
Weekly downloads
48
60%
Maintainers
1
Weekly downloads
 
Created
Source

ng-loading-spinner

Simple loading spinner for Angular (>= 4.3.x)

Screen

Loading spinner

Installation

npm install ng-loading-spinner --save

Usage

Import NgLoadingSpinnerModule in the root module

import { NgLoadingSpinnerModule, NgLoadingSpinnerInterceptor } from 'ng-loading-spinner';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';

@NgModule({
  providers: [
    // ...
    { provide: HTTP_INTERCEPTORS, useClass: NgLoadingSpinnerInterceptor, multi: true }
  ],
  imports: [
    // ...
    HttpClientModule,
    NgLoadingSpinnerModule,
    // ...
  ]
})

And just put the component in the template

 <ng-loading-spinner></ng-loading-spinner>

Licence

(TODO)

Keywords

angular

FAQs

Package last updated on 14 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts