0.0.0 • Published 6 years ago

ngx-loaders v0.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ngx-loaders

npm version

Small lightweight loading indicator components.

Demo

Installation

To install this library, run:

$ npm install ngx-loaders --save

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import library module
import { NgxLoadersModule } from 'ngx-loaders';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    // Register module
    NgxLoadersModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Component

Once the library is imported, you can use the ngx-loaders components.

Template

<ngx-loading-spinner mini></ngx-loading-spinner>
<ngx-loading-spinner small></ngx-loading-spinner>
<ngx-loading-spinner></ngx-loading-spinner>
<ngx-loading-spinner light></ngx-loading-spinner>
<ngx-loading-bar></ngx-loading-bar>

License

MIT © Cory Rylan