Files
lunchrun.me/www/linker/js/app.js
2014-03-22 20:21:21 -05:00

25 lines
663 B
JavaScript

var lunchApp;
lunchApp = angular.module('lunchApp', ['ngRoute', 'lunchControllers', 'lunchServices']);
lunchApp.config([
'$routeProvider', function($routeProvider) {
return $routeProvider.when('/', {
templateUrl: 'templates/home.html',
controller: 'HomeCtrl'
}).when('/run/:id', {
templateUrl: 'templates/run.html',
controller: 'RunCtrl'
}).when('/run/:id/order/:inviteeName', {
templateUrl: 'templates/create-order.html',
controller: 'CreateOrderCtrl'
});
}
]);
lunchApp.config([
'$locationProvider', function($locationProvider) {
return $locationProvider.html5Mode(false).hashPrefix('');
}
]);