1.2.0 • Published 1 year ago

@laijuthomas/angular-spinner v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Angular Spinner

A spinner component and directive for Angular 2-12+

Getting Started

Installation

Install via npm package manager

npm install @laijuthomas/angular-spinner --save

Usage

Import angular-spinner module

import { HttpClientModule} from '@angular/common/http';
import { AngularSpinnerModule } from '@laijuthomas/angular-spinner';

@NgModule({
  imports: [ HttpClientModule, AngularSpinnerModule ]
})

Then in HTML

<angular-spinner></angular-spinner>

Inputs

InputTypeDefaultRequiredDescription
sizestringmediumnoSet custom sizes like xxsmall, xsmall, small, medium, large, xlarge, xxlarge
statusstringactivenoSet custom status like active, disabled, primary, info, success, warning, danger
messagestring-noCustom message to show along with the loader

To use as directive pass a boolean variable to the directive

<div [angularSpinner]="loading"></div>

Inputs

InputTypeDefaultRequiredDescription
spinnerSizestringmediumnoSet custom sizes like xxsmall, xsmall, small, medium, large, xlarge, xxlarge
spinnerStatusstringactivenoSet custom status like active, disabled, primary, info, success, warning, danger
spinnerMessagestring-noCustom message to show along with the loader

What's included

Within the download you'll find the following directories and files. You'll see something like this:

angular-spinner/
└── projects/
    ├── angular-spinner/
    └── angular-spinner-app/

angular-spinner/ - library

angular-spinner-app/ - demo application

Creators

Laiju Thomas

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

4 years ago