ngga-loadable
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

NggaLoadable

Component that can show a loading spinner for angular applications

Install

npm install ngga-loadable --save

Setup

Step 1: Install library

npm i ngga-loadable --save

Step: 2: Import NggaLoadableModule to your app NgModule

import { CommonModule } from '@angular/common';

import { NggaLoadableModule } from 'ngga-loadable';

@NgModule({
  imports: [
  CommonModule,
    NggaLoadableModule    // <--- Import NggaLoadableModule
  ]
})
export class AppModule { }

Use

import { Component } from '@angular/core';

@Component({
  template: `
    <ngga-loadable [loading]="loading">
      <div>
        <!-- Content Here -->
      </div>
    </ngga-loadable>
  `
})
export class MyComponent {
  loading: boolean = false;
}

Licennse

MIT


Package Sidebar

Install

npm i ngga-loadable

Weekly Downloads

0

Version

0.1.5

License

MIT

Unpacked Size

82.9 kB

Total Files

20

Last publish

Collaborators

  • alecbw