What data grid should be used for an Angular 2 project if performance is a concern?
I have been using ng-table
for Angular 1, but am unsure which one would be good in terms of performance for Angular 2.
答案 0 :(得分:2)
我找到了一个ng2-table的例子。
https://github.com/valor-software/ng2-table
演示: - http://valor-software.com/ng2-table/
安装ng2-table的推荐方法是使用以下命令通过npm包管理器:
npm i ng2-table --save
使用API。
import { Ng2TableModule } from 'ng2-table/ng2-table';
或者如果要导入指定的插件(需要表组件,其他组件是可选的):
import { NgTableComponent, NgTableFilteringDirective, NgTablePagingDirective, NgTableSortingDirective } from 'ng2-table/ng2-table';