Create loading service

This commit is contained in:
manzerbredes 2016-03-02 07:14:05 +01:00
parent e9108d4b97
commit 2d99f1ecf2
4 changed files with 49 additions and 3 deletions

View file

@ -0,0 +1,22 @@
mainApp.factory('Loading',[ '$http', 'Identity', function($http, Identity){
var start=function(){
$('#loadingModal').modal({backdrop: 'static', keyboard: false});
};
var stop=function(){
$('#loadingModal').modal('hide');
}
return {
start:start,
stop:stop
};
}]);