1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-10 23:53:31 -05:00
shimapan/public/js/components/RegisterComp.js

16 lines
474 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',
2017-10-11 13:11:57 -04:00
controller: RegisterController
2017-10-11 10:15:19 -04:00
});