mardi 13 novembre 2018

How to get the value from angular material checkbox

I have a list of checkboxes:

    <section *ngFor="let item of list">
      <mat-checkbox [checked]="item.value" (click)="toggle(_value_)"></mat-checkbox>
    </section>

I need to pass the checkbox value to my function, how would you do that?




Aucun commentaire:

Enregistrer un commentaire