Vincent Fournier 844d9e0e6e Clean config.js and remove container
Change-Id: Ieeb6980232c02ec72a6a0caa707dddbacb008a6f
2015-08-26 16:45:55 -04:00

20 lines
822 B
JavaScript

'use strict';
angular.module('bansho.tile')
.directive('banshoTileHostCpu', function () {
return {
restrict: 'E',
templateUrl: 'components/custom_directive/tile/host_cpu/host_cpu.html',
controller: ['$scope', 'sharedData', 'templateManager', function ($scope, sharedData, templateManager) {
sharedData.getDataFromInputSource('statusServices', false,
templateManager.getAllPageParams(), false, function (services) {
angular.forEach(services, function (service) {
if (service.service_service_description === 'cpu') {
$scope.cpu = service;
}
});
});
}]
};
});