Any idea on how that should be done? I thought to have property checked in the element and then check\uncheck according to the status, but I get an error that says it's read only value
<mat-checkbox #checkbox (click)='$event.stopPropagation()' (change)='check(element, checkbox.checked) [checked]='checkbox.checked' </mat-checkbox>
check(element: periodicElement, checkStatus :boolean){
element.IsChecked =checkStatus;
this.selection.toggle(element)
}