1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-09-21 11:11:22 -04:00
shimapan/public/js/components/RegisterComp.js

17 lines
498 B
JavaScript
Raw Normal View History

2017-10-11 10:15:19 -04:00
function RegisterController($scope, AuthService) {
$scope.register = function() {
AuthService.register({
username: $scope.username,
2017-10-11 12:55:46 -04:00
password: $scope.password,
invite: $scope.invite
2017-10-11 10:15:19 -04:00
}).then(function() {
alert('Registered');
});
};
}
angular.module('RegisterComp', ['AuthSvc']).component('registerComponent', {
templateUrl: '/views/register-form.html',
controller: RegisterController,
controllerAs: 'vm'
});