Changement de matelle

// in HTML
<mat-checkbox id="parent" (change)="onChangeDemo($event)"></mat-checkbox>
// in TS
onChangeDemo(ob: MatCheckboxChange) {
    console.log(ob.checked + " => " + ob.source.id);
}
Anass Azeroual