added loader!
This commit is contained in:
1 parent
37209f6779
commit
cd28c44c00
13 files changed
+64
-29
No files matched your search
@@ -6,14 +6,14 @@ humanValueOfStatisticalAbreviation =
|
||||
var: "variance"
|
||||
|
||||
|
||||
root.controllers.controller('keyStatCtrl', ['$scope', '$routeParams', '$http', ($scope, $routeParams, $http) ->
|
||||
root.controllers.controller('keyStatCtrl', ['$scope', '$routeParams', 'util', ($scope, $routeParams, util) ->
|
||||
$scope.name = "didier!"
|
||||
$scope.stats = []
|
||||
|
||||
url = "/api/#{ $routeParams.server }/#{ $routeParams.database }/#{ $routeParams.collection }"
|
||||
url = "#{ url }/stats/#{$routeParams.key}"
|
||||
|
||||
$http.get(url).then((res) ->
|
||||
util.get(url).then((res) ->
|
||||
for key, val of res.data
|
||||
$scope.stats.push({name: humanValueOfStatisticalAbreviation[key], value: val })
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user