Files
lunchrun.me/assets/linker/js/app.coffee
2014-03-14 11:12:42 -05:00

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 ''
]