mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 09:37:29 +00:00
14 lines
506 B
JavaScript
14 lines
506 B
JavaScript
(function(module) {
|
|
mifosX.controllers = _.extend(module, {
|
|
UserListController: function(scope, resourceFactory) {
|
|
scope.users = [];
|
|
resourceFactory.userListResource.getAllUsers(function(data) {
|
|
scope.users = data;
|
|
});
|
|
}
|
|
});
|
|
mifosX.ng.application.controller('UserListController', ['$scope', 'ResourceFactory', mifosX.controllers.UserListController]).run(function($log) {
|
|
$log.info("UserListController initialized");
|
|
});
|
|
}(mifosX.controllers || {}));
|