samedi 8 juillet 2017

Angular 4 getting values from checkboxes

I am new to angular and am stuck at this pretty simple problem. I am getting data from a webservice to show a couple of checkboxes. I need a way to get the value of all of the checkboxes selected by the user. I am using material theme. Can someone please help me out?

<span *ngFor="let x of maintainanceTypeList">
            <md-checkbox name="" value=""  [formControl]="CreateSocietyForm.controls['checkMaintainanceType']"></md-checkbox>
            </span>




Aucun commentaire:

Enregistrer un commentaire