angular-treasure-overlay-spinner
Add a spinner to an element when binding is truthy.
treasure-overlay-spinner requires ngAnimate.
Installation
bower install angular-treasure-overlay-spinner
- add
angular-treasure-overlay-spinner/src/treasure-overlay-spinner.js
to your html - add
angular-treasure-overlay-spinner/src/treasure-overlay-spinner.css
to your html - add
treasure-overlay-spinner
as an angular module dependency
Usage
angular;angular; run$inject = '$rootScope'; { $scopespinner = active true;}
<!-- active uses two-way bindings to track the status --> This will be covered by a spinner when spinner.active is truthy
Example
Try the example by running:
npm install
bower install
npm run example
Or visit the live example.
Scripts
npm run example
- run example server and open browsernpm run build
- minify and copy to dist foldernpm run tdd
- run tests whenever files changenpm run test
- run tests