12 lines
351 B
CoffeeScript
12 lines
351 B
CoffeeScript
lunchControllers = angular.module 'lunchControllers'
|
|
|
|
lunchControllers.controller 'RunCtrl', ['$scope', 'socket', '$routeParams', ($scope, socket, $routeParams) ->
|
|
$scope.show = false
|
|
|
|
socket.get '/run/' + $routeParams['id'],
|
|
(response) ->
|
|
$scope.show = true
|
|
$scope.run = response
|
|
$scope.$apply()
|
|
]
|