Miss any of our Open RFC calls?Watch the recordings here! »

tpt-spinner

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


Install

npm i tpt-spinner

DownloadsWeekly Downloads

0

Version

2.0.0

License

none

Unpacked Size

1.01 MB

Total Files

26

Last publish

Collaborators

  • avatar