answered a similar question before. If you do not want to implement it yourself, here are a few links.
angular-spinner or angular-sham-spinner
also read this BLOG , which describes in detail how the counter works with angular
if you want to implement it yourself ... then
app.directive("spinner", function(){ return: { restrict: 'E', scope: {enable:"="}, template: <div class="spinner" ng-show="enable"><img src="content/spinner.gif"></div> } });
I have not tested the code, but the directive will not be more complicated than this ...
source share