mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 18:06:46 +00:00
17 lines
618 B
JavaScript
17 lines
618 B
JavaScript
(function(module) {
|
|
mifosX.controllers = _.extend(module, {
|
|
DataTableController: function(scope, resourceFactory,location) {
|
|
scope.routeTo = function(id){
|
|
location.path('/viewdatatable/' + id);
|
|
};
|
|
resourceFactory.DataTablesResource.getAllDataTables(function(data) {
|
|
scope.datatables = data;
|
|
});
|
|
|
|
}
|
|
});
|
|
mifosX.ng.application.controller('DataTableController', ['$scope', 'ResourceFactory','$location', mifosX.controllers.DataTableController]).run(function($log) {
|
|
$log.info("DataTableController initialized");
|
|
});
|
|
}(mifosX.controllers || {}));
|