14 lines
520 B
JavaScript
14 lines
520 B
JavaScript
'use strict';
|
|
|
|
angular.module('adagios.view.service', ['adagios.live'])
|
|
|
|
.controller('ServiceViewCtrl', ['$scope', '$routeParams',
|
|
function ($scope, $routeParams) {
|
|
if (!!$routeParams.host_name && !!$routeParams.description) {
|
|
$scope.hostName = $routeParams.host_name;
|
|
$scope.description = $routeParams.description;
|
|
} else {
|
|
throw new Error("ERROR :'host_name' and 'description' GET parameters must be set");
|
|
}
|
|
}]);
|