There was an error while loading. Please reload this page.
Download the Production version or the Development version.
Or download it with bower: open terminal and run
bower install bower-angular-spinner
Include js files into your web page:
<script type="text/javascript" src="[...]/spinner[.min].js"></script>
Add dependency to your app module:
angular.module('your-app-name', [ 'angular-spinner' ]);
The spinner module is now installed. It exposes the SpinnerConfig factory and spinner directive into your app.
spinner
SpinnerConfig
<div spinner=""> <img src="./images/wait_icon.gif" /> </div>
angular.module('app', [ 'angular-spinner' ]);
angular.module('app', [ 'angular-spinner' ]).run(function(){ $scope.$on(SpinnerConfig['_START_REQUEST_'], function() { // To-do }); $scope.$on(SpinnerConfig['_END_REQUEST_'], function() { // To-do }); });
Type: boolean
Check spinning or not
Type: integer
Number of pending requests