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>
<md-checkbox
class="md-h6 row md-padding--xs"
name="{{node.abc}}"
label="{{node.abc}}"
value="{{node.abc}}"
required="true"
htmlId="filter_label_{{j}}"
(click)="updatefilter(node.abc)"
[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?
node.selected?node.selectedshould have a True/False valuenode.selectedis not working. I tried it. I am not able to get the selected value.