on click for material table display in angular in angular code example
Example 1: mat-header-cell meterial style
const initialSelection = [];
const allowMultiSelect = true;
this.selection = new SelectionModel<MyDataType>(allowMultiSelect, initialSelection);
Example 2: mat-header-cell meterial style
<table mat-table [dataSource]="myDataArray">
...
</table>