Working run save
This commit is contained in:
@@ -4,10 +4,16 @@ lunchControllers.controller 'HomeCtrl', ['$scope', ($scope) ->
|
||||
]
|
||||
|
||||
lunchControllers.controller 'CreateRunCtrl', ['$scope', '$http', 'socket', ($scope, $http, socket) ->
|
||||
$scope.stuffs = [{name: 'my name'}]
|
||||
$scope.run =
|
||||
invitees: [{email: ''}]
|
||||
|
||||
$scope.addInvitee = () ->
|
||||
$scope.run.invitees.push { email: '' }
|
||||
|
||||
$scope.create = (run) ->
|
||||
socket.post '/run', run, (response) ->
|
||||
|
||||
data = angular.copy run
|
||||
socket.post '/run', data, (response) ->
|
||||
return
|
||||
]
|
||||
|
||||
lunchControllers.controller 'RunsCtrl', ['$scope', '$http', ($scope, $http) ->
|
||||
|
||||
Reference in New Issue
Block a user