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

# Simple loading spinner for Angular (>= 7.x) (Not tested on lower versions but should work fine)

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

NgxLoadingSpinner

Simple loading spinner for Angular (>= 7.x) (Not tested on lower versions but should work fine)

Screen

Example spinner

Installation

npm install ng-loading-spinner --save

Usage

Import NgxLoadingSpinnerModule in the root module

import { NgxLoadingSpinnerModule, NgxLoadingSpinnerInterceptor } from 'ngx-loading-spinner';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';

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

And just put the component in root html

 <ngx-loading-spinner top="100" color="red"></ngx-loading-spinner>

FAQs

Package last updated on 05 Apr 2019

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