Provides a service that will place a "loading" spinner at the center of the page and gray out the background.
Depends on font-awesome.
Demo Here
This module can be installed with npm
npm install anagular-loading-lbthomsen --save
-
Load angular-loading
<script src="node-modules/angular-loading/angular-loading.js"/> -
Inject into your Angular application
var app = angular.module("app", [ 'angular-loading' ]);
-
Toggle loading indicator from any controller
$scope.$emit("setLoading"); $scope.$emit("resetLoading");