ng-spin-kit
SpinKit (https://github.com/tobiasahlin/SpinKit) spinners for Angular 2+
Inspired by angular-spinkit (https://github.com/Urigo/angular-spinkit)
Usage
- Install with NPM:
npm install ng-spin-kit --save
- Import one component
- Use it:
// app.component.ts ; @ {} // app.module.ts ;; ;; @
For every component you can set:
[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
[color]: string - background color for each item
You can generate JavaScript code based on TypeScript by:
npm run tsc
To regenerate typings:
npm run typings
To compile and run demo app in browser:
npm start