bansho/app/components/custom_directive/tile/host_main/host_main.js
Vincent Fournier 844d9e0e6e Clean config.js and remove container
Change-Id: Ieeb6980232c02ec72a6a0caa707dddbacb008a6f
2015-08-26 16:45:55 -04:00

16 lines
609 B
JavaScript

'use strict';
angular.module('bansho.tile')
.directive('banshoTileHostMain', function () {
return {
restrict: 'E',
templateUrl: 'components/custom_directive/tile/host_main/host_main.html',
controller: ['$scope', 'sharedData', 'templateManager', function (scope, sharedData, templateManager) {
scope.host = sharedData.getDataFromInputSource('statusHosts', false,
templateManager.getAllPageParams(), false, function (host) {
scope.host = host;
});
}]
};
});