mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 13:51:55 +00:00
17 lines
694 B
JavaScript
17 lines
694 B
JavaScript
(function (module) {
|
|
mifosX.controllers = _.extend(module, {
|
|
EmployeeController: function (scope, resourceFactory, location) {
|
|
scope.employees = [];
|
|
scope.routeTo = function (id) {
|
|
location.path('/viewemployee/' + id);
|
|
};
|
|
resourceFactory.employeeResource.getAllEmployees(function (data) {
|
|
scope.employees = data;
|
|
});
|
|
}
|
|
});
|
|
mifosX.ng.application.controller('EmployeeController', ['$scope', 'ResourceFactory', '$location', mifosX.controllers.EmployeeController]).run(function ($log) {
|
|
$log.info("EmployeeController initialized");
|
|
});
|
|
}(mifosX.controllers || {}));
|