16 lines
491 B
CoffeeScript
16 lines
491 B
CoffeeScript
lunchControllers = angular.module 'lunchControllers', []
|
|
|
|
lunchControllers.controller 'HomeCtrl', ['$scope', ($scope) ->
|
|
]
|
|
|
|
lunchControllers.controller 'CreateRunCtrl', ['$scope', '$http', 'socket', ($scope, $http, socket) ->
|
|
$scope.stuffs = [{name: 'my name'}]
|
|
$scope.create = (run) ->
|
|
socket.post '/run', run, (response) ->
|
|
|
|
]
|
|
|
|
lunchControllers.controller 'RunsCtrl', ['$scope', '$http', ($scope, $http) ->
|
|
$scope.helloMsg = 'hello there boys and girls!'
|
|
]
|