ng-loading-spinner
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

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

This library was generated with Angular CLI version 10.2.0.

Installation

npm install ng-loading-spinner --save

Screenshot

Screenshot

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 root html

 <ng-loading-spinner top="100" color="green"></ng-loading-spinner>

Customization

Use top and color inputs for basic customization.

Funding

Buy me a cup of coffee. Thank you.

Paypal.me

Package Sidebar

Install

npm i ng-loading-spinner

Weekly Downloads

32

Version

2.0.6

License

none

Unpacked Size

54.8 kB

Total Files

21

Last publish

Collaborators

  • spaha