Skip to content

dbogart/angular-simple-spinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-simple-spinner

Custom directive for a simple angular loading spinner during state change for apps using ui-router.

To install:

bower install angular-simple-spinner

Add /angular_simple_spinner.js and /angular-simple-spinner.css to your index.html.:

<script src="bower_components/angular-simple-spinner/angular_simple_spinner.js"></script>
<link rel="stylesheet" href="bower_components/angular-simple-spinner/angular-simple-spinner.css">

Add to your list of dependencies for your main angular module:

'angularSimpleSpinner'

In the body of index.html add template:

<!-- load spinner -->
<div simple-spinner>
    <!-- icon/animation of your choice below -->
    <span class="btn btn-lg btn-primary">
        <i class="fa fa-circle-o-notch fa-spin"></i> Loading...
    </span>
</div>

Any loading icon, animation, gif, etc. may be used between the div tags. We recommend the spinner icons from fa-icons: http://fortawesome.github.io/Font-Awesome/icons/

Add the fa-icons css template if you use one of their icons: http://fortawesome.github.io/Font-Awesome/get-started/

About

Custom directive for a simple angular loading spinner

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages