mirror of
https://github.com/Foltik/Shimapan
synced 2024-11-13 00:26:55 -05:00
15 lines
416 B
JavaScript
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
|
|
}); |