community-app/app/scripts/controllers/organization/EmployeeController.js
2013-09-13 10:49:03 +05:30

14 lines
518 B
JavaScript

(function(module) {
mifosX.controllers = _.extend(module, {
EmployeeController: function(scope, resourceFactory) {
scope.employees = [];
resourceFactory.employeeResource.getAllEmployees(function(data) {
scope.employees = data;
});
}
});
mifosX.ng.application.controller('EmployeeController', ['$scope', 'ResourceFactory', mifosX.controllers.EmployeeController]).run(function($log) {
$log.info("EmployeeController initialized");
});
}(mifosX.controllers || {}));