bansho/app/table/table.js
2015-01-20 14:29:10 -05:00

18 lines
526 B
JavaScript

'use strict';
angular.module('adagios.table', ['ngRoute', 'adagios.table.entry', 'adagios.live'])
.controller('TableCtrl', ['$scope', '$http', 'GetServices', function ($scope, $http, GetServices) {
console.log(new GetServices(['host_name', 'last_check'])
.success(function (data) {
$scope.entries = data;
}));
}])
.directive('servicesTable', function () {
return {
restrict: 'E',
templateUrl: "table/table.html"
};
});