+ if ( $routeParams.registrationId ) {
+ $scope.user = new Registration();
+ $scope.user.$get({ registrationId: $routeParams.registrationId });
+ $log.info("get Registration", $scope.user);
+ } else {
+ $scope.user = new Registration();
+ $log.info("new Registration", $scope.user);
+ }
+
+ $log.info( $routeParams.registrationId );