Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 477 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 477 Bytes

Angular2 Spinner

Simple preloading indicator.

preview

Instalation

import { SpinnerModule } from 'angular2-spinner';
....
imports: [
    SpinnerModule,
],
...

Usage

<spinner [size]="20" [tickness]="1" [color]="#ff66ff"></spinner>
<button [disabled]="working" md-icon-button (click)="save()">
    <md-icon *ngIf="!working">save</md-icon>
    <spinner *ngIf="working" [tickness]="1" [size]="20"></spinner>
</button>