community-app/app/scripts/controllers/organization/ViewEmployeeController.js
2014-03-02 04:09:27 -08:00

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 || {}));