X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=app%2Fjs%2Fapp.js;h=22d056fbcb427bc195984887e0016c33b426ed47;hb=da59244f1f6246d809a2af9891475e855b5a1f02;hp=b91b65209a1eb7905f24db8d8d79582236bcadd8;hpb=bca091d2b5d17374d67f2fce236e7cfcf88ca823;p=angular-drzb diff --git a/app/js/app.js b/app/js/app.js index b91b652..22d056f 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -2,11 +2,14 @@ // Declare app level module which depends on filters, and services -angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']). +angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives', 'ui.bootstrap.pagination' ]). config(['$routeProvider', function($routeProvider) { - $routeProvider.when('/registration', {templateUrl: 'partials/registration.html', controller: RegistrationCtrl}); $routeProvider.when('/registration/:registrationId', {templateUrl: 'partials/registration.html', controller: RegistrationCtrl}); - $routeProvider.when('/registration-finished/:registrationId', {templateUrl: 'partials/registration-finished.html', controller: RegistrationCtrl}); - $routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: MyCtrl2}); - $routeProvider.otherwise({redirectTo: '/registration'}); + $routeProvider.when('/confirmation/:registrationId', {templateUrl: 'partials/confirmation.html', controller: RegistrationCtrl}); + $routeProvider.when('/draft/:registrationId', {templateUrl: 'partials/draft.html', controller: RegistrationCtrl}); + $routeProvider.when('/verified/:registrationId', {templateUrl: 'partials/verified.html', controller: RegistrationCtrl}); + $routeProvider.when('/review/:registrationId', {templateUrl: 'partials/review.html', controller: RegistrationCtrl}); + $routeProvider.when('/list', {templateUrl: 'partials/list.html', controller: ListCtrl}); + $routeProvider.when('/authors', {templateUrl: 'partials/authors.html', controller: AuthorsCtrl}); + $routeProvider.otherwise({redirectTo: '/registration/'}); }]);