mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-10 23:53:31 -05:00
17 lines
498 B
JavaScript
17 lines
498 B
JavaScript
function RegisterController($scope, AuthService) {
|
|
$scope.register = function() {
|
|
AuthService.register({
|
|
username: $scope.username,
|
|
password: $scope.password,
|
|
invite: $scope.invite
|
|
}).then(function() {
|
|
alert('Registered');
|
|
});
|
|
};
|
|
}
|
|
|
|
angular.module('RegisterComp', ['AuthSvc']).component('registerComponent', {
|
|
templateUrl: '/views/register-form.html',
|
|
controller: RegisterController,
|
|
controllerAs: 'vm'
|
|
}); |