About table loading time
Hi this is my first time. i am using mdt-table and I try to load data in table. but takes too much time to load data.
my js code is
var promise = applicationControlService.loadData(); promise.then( function (data) {
$scope.appCtrlData = data;
$scope.appCtrlDataCopy=data;
if ($scope.appCtrlData.acc_status === "off") {
$scope.ac_status = 1;
}
if ($scope.appCtrlData.acc_status === "on") {
$scope.ac_status = 0;
}
$scope.paginatorCallback(1, 5);
});
$scope.paginatorCallback = function (page, pageSize) {
var results = [];
var startIndex = (page - 1) * pageSize;
var endIndex = startIndex + pageSize;
//
for (var i = startIndex; i < $scope.appCtrlDataCopy.applist.length && i < endIndex; i++) {
results.push($scope.appCtrlDataCopy.applist[i]);
}
$scope.appCtrlData=results;
return $q.when({
results: results,
totalResultCount: $scope.appCtrlDataCopy.applist.length
});
};
Hi, I am Arvind. I wants to develop mdt-table will you please provide some documentations for how to start developing, What I have to do? What it needs? or how i can use your developed table. You can share some links to understand all this thinks.
Thanx
I am very new in angularJS
Please provide help
ArvindNikam76,
see here for working example: http://iamisti.github.io/mdDataTable/ See here for documentation : https://github.com/iamisti/mdDataTable
okay thank you
i am using mdt table, it takes much time to load data so that i use virtual repeat but its still issue on Mozilla browser
also pagination not working properly