Reputation: 31
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
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
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