all files / js/employer/ employerLogin.controller.js

33.33% Statements 2/6
100% Branches 0/0
0% Functions 0/4
33.33% Lines 2/6
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23                                         
/**
 * 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;
            });
    }
}