Answers for "mat-checkbox change"

0

mat-checkbox change

// in HTML
<mat-checkbox id="parent" (change)="onChangeDemo($event)"></mat-checkbox>
// in TS
onChangeDemo(ob: MatCheckboxChange) {
    console.log(ob.checked + " => " + ob.source.id);
}
Posted by: Guest on June-30-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language