SpinKit (https://github.com/tobiasahlin/SpinKit) spinners for AngularJS v2.x
Inspired by angular-spinkit (https://github.com/Urigo/angular-spinkit)
- Install with NPM:
npm install ng2-spin-kit --save
- Import one component
import {RotatingPlaneComponent} from 'ng2-spin-kit/app/spinner/rotating-plane/rotating-plane.component'
- or all of them
import * as spinner from 'ng2-spin-kit/app/spinners'
- Use as a directive:
import {Component} from 'angular2/core';
import * as spinner from 'ng2-spin-kit/app/spinners';
@Component({
selector: 'app',
directives: [
spinner.RotatingPlaneComponent,
spinner.DoubleBounceComponent,
spinner.WaveComponent,
spinner.WanderingCubesComponent,
spinner.PulseComponent,
spinner.ChasingDotsComponent,
spinner.CircleComponent,
spinner.ThreeBounceComponent,
spinner.CubeGridComponent,
spinner.WordPressComponent,
spinner.FadingCircleComponent,
spinner.FoldingCubeComponent
],
templateUrl: 'app/app.html'
})
<sk-rotating-plane [isRunning]="..." [delay]="..."></sk-rotating-plane>
<sk-double-bounce [isRunning]="..." [delay]="..."></sk-double-bounce>
<sk-wave [isRunning]="..." [delay]="..."></sk-wave>
<sk-wandering-cubes [isRunning]="..." [delay]="..."></sk-wandering-cubes>
<sk-pulse [isRunning]="..." [delay]="..."></sk-pulse>
<sk-chasing-dots [isRunning]="..." [delay]="..."></sk-chasing-dots>
<sk-circle [isRunning]="..." [delay]="..."></sk-circle>
<sk-three-bounce [isRunning]="..." [delay]="..."></sk-three-bounce>
<sk-cube-grid [isRunning]="..." [delay]="..."></sk-cube-grid>
<sk-word-press [isRunning]="..." [delay]="..."></sk-word-press>
<sk-fading-circle [isRunning]="..." [delay]="..."></sk-fading-circle>
<sk-folding-cube [isRunning]="..." [delay]="..."></sk-folding-cube>
[isRunning]: boolean - state of the spinner, true - visible, false - hidden, default: true
[delay]: number - representing the milliseconds to wait, before showing the spinner, default: 0
npm run tcs
npm run typings