Files
lunchrun.me/www/linker/js/app.js
2014-04-14 11:35:11 -05:00

30 lines
832 B
JavaScript

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