tpt-spinner
v2.0.0
Published
>Angular 7 spinner. > Its good component for angular spinner where you can use default spinner or you can inject the template through ng-template.
Downloads
16
Maintainers
Readme
tpt-spinner
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