DefinitelyTyped/types/angular-http-auth/angular-http-auth-tests.ts
2017-03-24 14:27:52 -07:00

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();
});
}
});
})();