ngx-fancy-preloader
v0.0.7
Published
preloader element angular, angular 2
Downloads
16
Maintainers
Readme
Beautiful preloaders for angular
Install it from npm:
npm install ngx-fancy-preloader
Usage
Module
...
import {NgxFancyPreloaderModule } from 'ngx-fancy-preloader';
...
...
@NgModule({
imports: [...,NgxFancyPreloaderModule]
})
...
View
Use in template like below
<fancy-preloader [loading]="loading" [type]="type"></fancy-preloader>
Import
You can import constants from npm
import { FancyPreloaderTypes } from 'ngx-fancy-preloader';
private types: string = FancyPreloaderTypes.CIRCLE_DOT;
private loading: boolean = false;