lunchControllers = angular.module 'lunchControllers' lunchControllers.controller 'RunCtrl', ['$scope', 'socket', '$routeParams', ($scope, socket, $routeParams) -> $scope.show = false socket.get '/run', where: id: $routeParams['id'], (response) -> $scope.show = true $scope.run = response[0] $scope.$apply() ]