DefinitelyTyped/types/angular-http-auth/angular-http-auth-tests.ts

15 lines
392 B
TypeScript
Raw Permalink Normal View History

2016-05-10 19:22:25 +00:00
2014-10-21 05:49:03 +00:00
(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();
});
}
});
})();