Lines Matching full:scope
13 '$scope', '$window', 'APIUtils', '$route', '$q', 'toastService',
14 function($scope, $window, APIUtils, $route, $q, toastService) { argument
15 $scope.power_consumption = '';
16 $scope.power_cap = {};
17 $scope.loading = false;
21 $scope.loading = true;
25 $scope.power_cap = data.data;
33 $scope.power_consumption = data;
45 $scope.loading = false;
49 $scope.setPowerCap = function() {
51 if (!$scope.power_cap.PowerCap) {
56 $scope.loading = true;
71 $scope.loading = false;
74 $scope.refresh = function() {
79 return APIUtils.setPowerCap($scope.power_cap.PowerCap)
89 return APIUtils.setPowerCapEnable($scope.power_cap.PowerCapEnable)