Licence
—
Version
1.0.0
Deps
1
Size
102 kB
Vulns
0
Weekly
0
BorXLoader
NPM Package used as a loader/spinner for angular application.
Features
- Four types of loader/spinner is integrated
- Image is added on the loader
- Can be used from any component
- Customize functionality
- Show/Hide any features based on configuration
Installation
Install borxloader with npm
npm install borxloaderUsage/Examples
- import BorxloaderModule
// app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { BorxloaderModule } from 'borxloader';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
BorxloaderModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }And you are good to go...
Use it in your app.component.html
<borx-loader></borx-loader>By-default has congifuration in which every feature is enabled but you modify it according to your need.
config = {
image: 'Your Image Source Link',
loaderType: 'ring',
loaderColor: 'black',
showImage: true,
showSpinner: true,
showBackdrop: true,
}imagesource link of your image.loaderTypedefine which type of loader you want to use. Four types has been integrated asring | roller | spinner | ellipsisloaderColorColor code for the loader/spinner.showImageBoolean if you want to show image along with loader or not.showSpinnerBoolean if you want to show spinner or not.showBackdropBoolean if you want to show backdrop or not.
you have to pass this configuration allong with borx-loader in app.component.html
<borx-loader [config]="config"></borx-loader>