6 function RegistrationCtrl($scope, $log, Registration, $routeParams, $location, $route) {
8 $scope.$routeParams = $routeParams;
9 $scope.$location = $location;
11 $scope.update = function(user) {
13 $log.info("saved", user);
14 $location.path( '/registration-finished/' + $routeParams.registrationId );
17 $scope.reset = function() {
18 if ( $routeParams.registrationId ) {
19 $scope.user = new Registration();
20 $scope.user.$get({ registrationId: $routeParams.registrationId });
21 $log.info("get Registration", $scope.user);
23 $scope.user = new Registration();
24 $log.info("new Registration", $scope.user);
27 $log.info( $routeParams.registrationId );
32 //RegistrationCtrl.$inject = [ '$scope', '$log' ];