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

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.2.0.

2.0.6
latest
npmnpm
Version published
Weekly downloads
40
48.15%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

spinner

FAQs

Package last updated on 23 Dec 2020

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