angular-ajax-spinner

AngularJs module to show spinner while ajaxing.

Added by: Sam Deering

GitHub

Repository

qwiglydee/angular-ajax-spinner

Stats

Stars: 0

Watchers: 0

Forks: 0

Author

QwiglyDee
QwiglyDee

Module Description

angular-ajax-spinner

AngularJs module to show spinner while ajaxing.

Just a service to count requests and provide counter to directive.

Plunk

http://plnkr.co/Av422N

Synopsys

angular.module('main', ['ajaxSpinner'])
    .config(function($httpProvider, ajaxSpinnerProvider) {
        $httpProvider.interceptors.push(ajaxSpinnerProvider.httpInterceptor);
    })
    ;
<span class="glyphicon glyphicon-refresh" ajax-spinning ng-show="ajaxCounter" ng-class="{spinning: ajaxCounter}"></span>
.spinning {
  animation: spin 2s infinite linear;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

Module stats last updated: 2015-04-19 12:46:13

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!