simple registration
[angular-drzb] / app / js / controllers.js
1 'use strict';
2
3 /* Controllers */
4
5
6 function RegistrationCtrl($scope, $log, Registration) {
7         $scope.master = {};
8
9         $scope.update = function(user) {
10                 $scope.master = angular.copy(user);
11                 $log.info("saved", user, user.$save());
12         }
13
14         $scope.reset = function() {
15                 //$scope.user = angular.copy($scope.master);
16                 $scope.user = new Registration();
17         }
18
19         $scope.reset();
20
21 }
22 //RegistrationCtrl.$inject = [ '$scope', '$log' ];
23
24
25 function MyCtrl2() {
26 }
27 MyCtrl2.$inject = [];