mercredi 9 juin 2021

How do I get the checked and unchecked values of a checkbox in angular

I have a list of checkboxes as shown below:

 <div class="col-md-4 md-padding"  *ngFor="let node of nodeList; let j=index;">
              <md-checkbox-group>
                <md-checkbox
                  class="md-h6 row md-padding--xs"
                  name=""
                  label=""
                  value=""
                  required="true"
                  htmlId="filter_label_"
                  (click)="updatefilter(node.FQDN)"
                  [formControlName]="servers"
                  [(ngModel)]="node.selected">
                </md-checkbox>


              </md-checkbox-group>


            </div>

I have to check if the checbox is checked or unchecked. How do I proceed?




Aucun commentaire:

Enregistrer un commentaire