tpt-spinner
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

tpt-spinner NPM version

Angular 7 spinner. Its good component for angular spinner where you can use default spinner or you can inject the template through ng-template.

Install

Install with npm:

npm i tpt-spinner

Basic Usage

Add tag in app component. and import TptSpinnerModule in Root module (appModule)

Inject TptSpinnerManager in where ever you want to toggle spinner

constructor(private spinnerManager: TptSpinnerManager) { }
this.spinnerManager.show();
this.spinnerManager.hide();

With width and height

<tpt-spinner [width]="120" [height]="120"></tpt-spinner>

Custom template injuction

<tpt-spinner [width]="120" [height]="120">
  <ng-template>
    <div class="loader"></div>
  </ng-template>
</tpt-spinner>

Author

Tirupathi Temburu

License

Copyright (c) 2019 Tirupathi Temburu, contributors.
Released under the MIT license


/tpt-spinner/

    Package Sidebar

    Install

    npm i tpt-spinner

    Weekly Downloads

    20

    Version

    2.0.0

    License

    none

    Unpacked Size

    1.01 MB

    Total Files

    26

    Last publish

    Collaborators

    • tirupathitemburu