0.1.1 • Published 3 years ago

ngx-awesome-loader v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Ngx Awesome Loader :india:


Versions

Angularngx-awesome-loader
>=11.0.0 <12.0.0v0.0.x

Table of contents

Features

  • Better User Experience
  • Client Side View Enhanced

Getting started

Step 1: Install ngx-awesome-loader:

NPM

npm install ngx-awesome-loader --save

Step 2: Import the NgxAwesomeLoaderModule :

import { NgxAwesomeLoaderModule } from 'ngx-awesome-loader';

@NgModule({
  declarations: [AppComponent],
  imports: [ NgxAwesomeLoaderModule ],
  bootstrap: [AppComponent]
})
export class AppModule {}

Usage

Define options in your consuming component:

@Component({...})
export class ExampleComponent {
    array = Student[] = [];
    isLoading:boolean = false;
    currentTemplate:string = 'list';
    // template types are user-messages , list , table , product and notifications
}

In template use ngx-awesome-loader component with your options

<!--Using ng-container and ng-template for template rendering-->
<ng-container *ngIf="array && array.length; else loading"></ng-container>
<ng-template #loading>
    <ngx-awesome-loader [template]="currentTemplate" [isLoading]="isLoading" [count]="4">
    </ngx-awesome-loader>
</ng-template>

Why Ngx Awesome Loader?

  • Whenever we have huge bunch of data to be displayed to user we either go for static loader or http loaders but what if we want to have a loader specific to a component then ngx-awesome-loader is a good choice.
  • Upcoming feature will include card template and other custom templates.
0.1.1

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago