Add public folder

This commit is contained in:
Ben Ramey
2014-03-22 20:19:01 -05:00
parent 00e91925b8
commit f9479b7734
31 changed files with 44968 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
var lunchControllers;
lunchControllers = angular.module('lunchControllers');
lunchControllers.controller('RunCtrl', [
'$scope', 'socket', '$routeParams', function($scope, socket, $routeParams) {
$scope.show = false;
socket.get('/run/' + $routeParams['id'], function(response) {
$scope.show = true;
$scope.run = response;
return $scope.$apply();
});
return socket.on('message', function(m) {
if (m.verb === 'update' && m.id === $routeParams.id) {
$scope.run = m.data;
return $scope.$apply();
}
});
}
]);