This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

ngx-loading-indicator
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

npm version Downloads

Purpose

Easily show and hide a loading indicator using a service.

Usage

Install from npm (https://www.npmjs.com/package/ngx-loading-indicator)

npm install --save ngx-loading-indicator

Import the indicator module to your module

import {
  NgxBarIndicatorModule,
  NgxSpinnerIndicatorModule
} from "ngx-loading-indicator";

Inject the services and use them.

import {
  NgxBarIndicatorService,
  NgxSpinnerIndicatorService
} from 'ngx-loading-indicator';
 
export class AppComponent {
  constructor(
    public spinnerIndicator: NgxSpinnerIndicatorService,
    public barIndicator: NgxBarIndicatorService,
  ) {
    this.spinnerIndicator.show();
    this.spinnerIndicator.hide();
    this.spinnerIndicator.reset();
  }
}

Package Sidebar

Install

npm i ngx-loading-indicator

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

153 kB

Total Files

32

Last publish

Collaborators

  • totati