- $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/'});