6 function RegistrationCtrl($scope, $log, Registration, $routeParams) {
8 $scope.$routeParams = $routeParams;
10 $scope.update = function(user) {
11 $log.info("saved", user, user.$save());
14 $scope.reset = function() {
15 if ( $routeParams.registrationId ) {
16 $scope.user = new Registration();
17 $scope.user.$get({ registrationId: $routeParams.registrationId });
18 $log.info("get Registration", $scope.user);
20 $scope.user = new Registration();
21 $log.info("new Registration", $scope.user);
24 $log.info( $routeParams.registrationId );
29 //RegistrationCtrl.$inject = [ '$scope', '$log' ];