Rearrange controllers

This commit is contained in:
Ben Ramey
2014-03-14 13:49:19 -05:00
parent da466969ba
commit fc0ed457a6
3 changed files with 26 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
lunchControllers = angular.module 'lunchControllers' lunchControllers = angular.module 'lunchControllers'
lunchControllers.controller 'CreateOrderCtrl', ['$scope','socket','$routeParams', ($scope, socket, $routeParams) -> lunchControllers.controller 'CreateOrderCtrl', ['$scope','socket','$routeParams',
CreateOrderController = ($scope, socket, $routeParams) ->
$scope.show = false $scope.show = false
socket.get '/run/' + $routeParams['id'], socket.get '/run/' + $routeParams['id'],

View File

@@ -1,6 +1,7 @@
lunchControllers = angular.module 'lunchControllers' lunchControllers = angular.module 'lunchControllers'
lunchControllers.controller 'CreateRunCtrl', ['$scope', '$http', '$location', 'socket', ($scope, $http, $location, socket) -> lunchControllers.controller 'CreateRunCtrl', ['$scope', '$http', '$location', 'socket',
CreateRunController = ($scope, $http, $location, socket) ->
$scope.run = $scope.run =
creatorName: 'ben ramey' creatorName: 'ben ramey'
creatorEmail: 'ben.ramey@gmail.com' creatorEmail: 'ben.ramey@gmail.com'

View File

@@ -1,4 +1,5 @@
lunchControllers = angular.module 'lunchControllers' lunchControllers = angular.module 'lunchControllers'
lunchControllers.controller 'HomeCtrl', ['$scope', ($scope) -> lunchControllers.controller 'HomeCtrl', ['$scope',
HomeController = ($scope) ->
] ]