13 lines
416 B
JavaScript
13 lines
416 B
JavaScript
'use strict';
|
|
|
|
angular.module('bansho.view.host', ['bansho.live'])
|
|
|
|
.controller('HostViewCtrl', ['$http', '$scope', '$routeParams',
|
|
function ($http, $scope, $routeParams) {
|
|
if (!!$routeParams.host_name) {
|
|
$scope.hostName = $routeParams.host_name;
|
|
} else {
|
|
throw new Error("ERROR :'host_name' GET parameter must be set");
|
|
}
|
|
}]);
|