1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-11-13 00:26:55 -05:00
shimapan/public/js/components/LoginComp.js
2017-10-11 13:11:57 -04:00

15 lines
416 B
JavaScript

function LoginController($scope, AuthService) {
$scope.login = function() {
AuthService.login({
username: $scope.username,
password: $scope.password
}).then(function() {
alert('Logged In');
});
}
}
angular.module('LoginComp', ['AuthSvc']).component('loginComponent', {
templateUrl: '/views/login-form.html',
controller: LoginController
});