1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-09-21 03:09:15 -04:00
shimapan/public/js/components/RegisterComp.js
2017-10-11 13:11:57 -04:00

16 lines
474 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
});