Need private packages and team management tools?Check out npm Teams »

ngx-loading-indicator

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();
  }
}

Install

npm i ngx-loading-indicator

DownloadsWeekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

153 kB

Total Files

32

Last publish

Collaborators

  • avatar