24 lines
599 B
CoffeeScript
24 lines
599 B
CoffeeScript
lunchApp = angular.module 'lunchApp', [
|
|
'ngRoute',
|
|
'lunchControllers',
|
|
'lunchServices'
|
|
]
|
|
|
|
lunchApp.config ['$routeProvider',
|
|
($routeProvider) ->
|
|
$routeProvider
|
|
.when '/',
|
|
templateUrl: 'templates/home.html',
|
|
controller: 'HomeCtrl'
|
|
.when '/run/:id',
|
|
templateUrl: 'templates/run.html',
|
|
controller: 'RunCtrl'
|
|
.otherwise
|
|
redirectTo: '/'
|
|
]
|
|
|
|
lunchApp.config ['$locationProvider',
|
|
($locationProvider) ->
|
|
$locationProvider.html5Mode(false).hashPrefix ''
|
|
]
|