mat checkbox change

Solutions on MaxInterview for mat checkbox change by the best coders in the world

showing results for - "mat checkbox change"
Elena
10 Feb 2020
1// in HTML
2<mat-checkbox id="parent" (change)="onChangeDemo($event)"></mat-checkbox>
3// in TS
4onChangeDemo(ob: MatCheckboxChange) {
5    console.log(ob.checked + " => " + ob.source.id);
6}