Data Grid for Angular 2

user3739018 picture user3739018 · Apr 4, 2016 · Viewed 59.2k times · Source

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.

Answer

Harish Bansode picture Harish Bansode · Jan 31, 2017

I found one example of ng2-table.

https://github.com/valor-software/ng2-table
Demo :- http://valor-software.com/ng2-table/

A recommended way to install ng2-table is through npm package manager using the following command:

npm i ng2-table --save

Below API used.

import { Ng2TableModule } from 'ng2-table/ng2-table';

or if you want to import specified plugins (Table component is required, the others are optional):

import { NgTableComponent, NgTableFilteringDirective, NgTablePagingDirective, NgTableSortingDirective } from 'ng2-table/ng2-table';