Angular stuff

This commit is contained in:
Ben Ramey
2014-03-11 22:11:39 -05:00
parent 93931cf4b2
commit e18e186be0
12 changed files with 18 additions and 77 deletions

View File

@@ -3,10 +3,11 @@ lunchControllers = angular.module 'lunchControllers', []
lunchControllers.controller 'HomeCtrl', ['$scope', ($scope) ->
]
lunchControllers.controller 'CreateRunCtrl', ['$scope', '$http', ($scope, $http) ->
$scope.msg = 'im home, yah'
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) ->