X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=app%2Fjs%2Fapp.js;h=cf0efeb66e1be6f992c282a2524cdf0e240db83a;hb=e5f83633ea28f65bd99ce98d43964abb57c1fdff;hp=15743d771947cb9d93cc3cbd64dbe35a5ae24f84;hpb=65cb69135ee76996f59cedce3054f18016a32a86;p=angular-drzb diff --git a/app/js/app.js b/app/js/app.js index 15743d7..cf0efeb 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -2,9 +2,12 @@ // 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' ]). config(['$routeProvider', function($routeProvider) { - $routeProvider.when('/view1', {templateUrl: 'partials/partial1.html', controller: MyCtrl1}); - $routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: MyCtrl2}); - $routeProvider.otherwise({redirectTo: '/view1'}); + $routeProvider.when('/registration/:registrationId', {templateUrl: 'partials/registration.html', controller: RegistrationCtrl}); + $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('/list', {templateUrl: 'partials/list.html', controller: ListCtrl}); + $routeProvider.otherwise({redirectTo: '/registration/'}); }]);