Akhil Shrivastava
Akhil Shrivastava

Reputation: 31

Angular Tables mat-table and cdk-table

What is the difference in angular's mat-table and cdk-table and in mat-table can we render rows of table after it has been created once.

Upvotes: 3

Views: 4027

Answers (2)

Christoff Erasmus
Christoff Erasmus

Reputation: 975

From the Angular Material documentation.

The mat-table provides a Material Design styled data-table that can be used to display rows of data.

This table builds on the foundation of the CDK data-table and uses a similar interface for its data input and template, except that its element and attribute selectors will be prefixed with mat- instead of cdk-.

https://material.angular.io/components/table/overview

Upvotes: 1

Shifenis
Shifenis

Reputation: 1125

As you can read from Angular Material's doc, mat-table 'extends' the CDKTable.
They has the same API, but with mat-table you have the standard of Material Design

Upvotes: 3

Related Questions