Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 682 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 682 Bytes

angular-spin

Tiny spin.js wrapping directive for angular.

Usage:

<div ng-init="config={lines:12}">
    <div spin="config"></div>
</div>

or

<div ng-init="config={lines:12}; spinif=true">
    <div spin="config" spin-if="spinif"></div>
</div>

Enhancements in 0.1.2

Is now a UMD module for AMD or browser globals. Spin.js is so it is easier to use this with AMD now.

Will take the foreground color of the host element if none is specified in the config, like the jQuery plugin version.

You can specify hideElement: true in the config and it will cause the host element to hide when the spinner stops (via spin-if).