Cannot get selected mat-checkbox on each click

try something like this

in html:

<!-- rows -->
<td mat-cell *matCellDef="let row">
    <mat-checkbox (click)="selectionCh($event)"
              (change)="$event ? selection.toggle(row) : null"

in ts:

selectionCh($event) {
    let value = $;
    /* iterate over the rows to see which ones are selected 
     * and implement your logic

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top