1234567891011121314151617181920212223 |
- (function() {
- 'use strict';
- app.controller('Registration', [
- '$scope',
- 'account.repository',
- '$uibModalInstance',
- function($scope, accountRepository, $uibModalInstance) {
- $scope.user = {
- login: '',
- email: '',
- password: ''
- };
- $scope.submitRegistration = function() {
- accountRepository.registration($scope.user).then(function(response) {
- console.log('response', response);
- $uibModalInstance.close(true);
- }, function(error) {});
- }
- }]);
- })();
|