blob: 193683d963c5cfcf6d0bfe4300fb6afb965bb93f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
var statusapp = angular.module('status-app', []);
statusapp.controller('status-controller', ['$scope', '$http', function status_controller($scope, $http) {
$scope.systems = [];
setInterval(function() {
$http({
method: "GET",
url: "/status"
}).then(function successCallback(response) {
$scope.systems = response.data;
}, function errorCallback(response) {
});
}, 5000);
}]);
|