mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
392 B
TypeScript
15 lines
392 B
TypeScript
|
|
|
|
(function () {
|
|
'use strict';
|
|
angular.module('login', ['http-auth-interceptor'])
|
|
|
|
.controller('LoginController', ($scope:any, $http:any, authService:ng.httpAuth.IAuthService) => {
|
|
$scope.submit = () => {
|
|
$http.post('auth/login').success(() => {
|
|
authService.loginConfirmed();
|
|
});
|
|
}
|
|
});
|
|
})();
|