diff options
Diffstat (limited to 'public/scripts/app.js')
| -rw-r--r-- | public/scripts/app.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/public/scripts/app.js b/public/scripts/app.js new file mode 100644 index 0000000..de47a22 --- /dev/null +++ b/public/scripts/app.js @@ -0,0 +1,29 @@ +'use strict'; + + +// Declare app level module which depends on filters, and services +angular.module('app', [ + 'ngRoute', + 'app.controllers' +]) + .config(['$routeProvider', function($routeProvider) { + $routeProvider + .when('/', { + templateUrl: 'partials/login.html', + controller: 'loginController' + }) + .when('/home', { + templateUrl: 'partials/home.html', + controller: 'homeController' + }) + .when('/new-event', { + templateUrl: 'partials/new.html', + controller: 'newController' + }) + .when('/event', { + templateUrl: 'partials/event.html', + controller: 'eventController' + }).otherwise({ + redirectTo: '/' + }); + }]); |
