| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 1× 1× | /**
* Created by eknelson17 on 3/3/15.
*/
angular
.module('coopEval')
.controller('EmployerLoginController', EmployerLoginController);
function EmployerLoginController($scope, employerService) {
$scope.credentials = {
username: '',
password: ''
};
$scope.login = function (credentials) {
employerService.login(credentials)
.success(function (user) {
//$scope.setCurrentUser(user.data);
})
.error(function (data) {
$scope.errors = data;
});
}
} |