I\'m trying to build an inline editable table using the latest material+cdk for angular.
How can I make mat-table use
[formG
For matSort
to work the type definition is important, at least that's what I found. So with type as any in the code :
dataSource: MatTableDataSource;
Will not work. There has to be a type defined here to make it work, try to define a interface and pass it in the generics of MatTableDataSource
.
Also matColumnDef
has to match the property name of the defined type.