我是AngularJ和NG表的新手。以下是我用来获取数据的代码
$http.get('database/php_files/bus_chart.php').then(function(response) {
$scope.records = response.data;
$scope.tableRoute = new NgTableParams({
page:1,
count:10,
sorting: { Source: "" } ,
sorting: { Destination: "" },
filter: { Source: "" } ,
filter:{Destination:""}
// filterOptions: { filterFn: fromToFilter },
}, {
dataset:$scope.records
});
});
我的数据很大,因此在排序和过滤时需要加载程序,BCOZ需要时间才能加载数据。请给我解决方案。
您可以在项目中使用github存储库中的项目中使用'Angular-Loading-bar':
https://github.com/chieffancypants/angular-loading-bar
Angularjs的纤细,网站范围的进度杆。
在此处查看ngprogress