Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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);
}
 
PREVIOUS NEXT
Tagged: #change
ADD COMMENT
Topic
Name
2+3 =