Angular stuff
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user