angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives']).
config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/registration/:registrationId', {templateUrl: 'partials/registration.html', controller: RegistrationCtrl});
- $routeProvider.when('/registration-finished/:registrationId', {templateUrl: 'partials/registration-finished.html', controller: RegistrationCtrl});
+ $routeProvider.when('/confirmation/:registrationId', {templateUrl: 'partials/confirmation.html', controller: RegistrationCtrl});
$routeProvider.when('/list', {templateUrl: 'partials/list.html', controller: ListCtrl});
$routeProvider.when('/view2', {templateUrl: 'partials/partial2.html', controller: MyCtrl2});
$routeProvider.otherwise({redirectTo: '/registration/'});
$log.info("saved", registration);
$log.info('id =', registration.id);
if ( registration.id ) {
- $location.path( '/registration-finished/' + registration.id );
+ $location.path( '/confirmation/' + registration.id );
} else {
$log.error("can't find id in ", registration);
}
--- /dev/null
+
+<div ng-controller="RegistrationCtrl" name="RegistrationForm">
+
+Registration for
+
+{{user.firstname}}
+{{user.surname}}
+<span ng-show="user.organization">
+from
+{{user.organization}}
+</span>
+is received, thanks.
+
+<pre>
+user={{user}}
+
+$routeParams={{$routeParams}}
+
+{{RegistrationForm.$valid}}
+{{RegistrationForm.$error}}
+
+location={{$location}}
+
+</pre>
+
+</div>
+
+
+++ /dev/null
-
-<div ng-controller="RegistrationCtrl" name="RegistrationForm">
-
-Registration for
-
-{{user.firstname}}
-{{user.surname}}
-<span ng-show="user.organization">
-from
-{{user.organization}}
-</span>
-is received, thanks.
-
-<pre>
-user={{user}}
-
-$routeParams={{$routeParams}}
-
-{{RegistrationForm.$valid}}
-{{RegistrationForm.$error}}
-
-location={{$location}}
-
-</pre>
-
-</div>
-
-