bansho/app/components/tactical/top_alert_producers/top_alert_producers.js
2015-02-03 13:51:33 -05:00

27 lines
732 B
JavaScript

'use strict';
angular.module('adagios.tactical.top_alert_producers', ['ngRoute' ])
.controller('TacticalTopAlertProducers', ['$scope', '$http', function ($scope, $http) {
$scope.hosts = [
{
"host_name": "server-18",
"problems": 10
},
{
"host_name": "server-22",
"problems": 5
},
{
"host_name": "server-13",
"problems": 3
}
];
}])
.directive('adgTopAlertProducers', function () {
return {
restrict: 'E',
templateUrl: 'components/tactical/top_alert_producers/top_alert_producers.html'
};
});