mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 13:51:55 +00:00
14 lines
616 B
JavaScript
14 lines
616 B
JavaScript
(function (module) {
|
|
mifosX.controllers = _.extend(module, {
|
|
ViewEmployeeController: function (scope, routeParams, resourceFactory) {
|
|
scope.employee = [];
|
|
resourceFactory.employeeResource.get({staffId: routeParams.id}, function (data) {
|
|
scope.employee = data;
|
|
});
|
|
}
|
|
});
|
|
mifosX.ng.application.controller('ViewEmployeeController', ['$scope', '$routeParams', 'ResourceFactory', mifosX.controllers.ViewEmployeeController]).run(function ($log) {
|
|
$log.info("ViewEmployeeController initialized");
|
|
});
|
|
}(mifosX.controllers || {}));
|