added loader!
This commit is contained in:
1 parent
37209f6779
commit
cd28c44c00
13 files changed
+64
-29
No files matched your search
@@ -0,0 +1,14 @@
|
||||
root = this
|
||||
|
||||
root.services.factory('util', ['$http', '$rootScope', ($http, $rootScope)->
|
||||
service =
|
||||
get: (params...) ->
|
||||
$rootScope.$broadcast("loading")
|
||||
return $http.get(params...).
|
||||
finally( () ->
|
||||
$rootScope.$broadcast("loadingFinished")
|
||||
)
|
||||
|
||||
return service
|
||||
|
||||
]);
|
||||
Reference in new issue
Block a user