I have gridview in which I have a list of email ids. I want to get checkbox selected email ids in an array or a variable on button click. I'm new to this technology, Please help.
Here is my sendmail.html code:
<div>
<ion-grid>
<ion-row wrap class="gridHeading">
<ion-col col-2 class="gridHeading" align="center"></ion-col>
<ion-col col-10 class="gridHeading" align="center">CLIENT EMAIL</ion-col>
</ion-row>
<ion-row wrap *ngFor="let mail of custEmailIDs" class="gridCol">
<ion-col col-2 class="gridCol"><ion-checkbox [(ngModel)]="mail.checked"></ion-checkbox></ion-col>
<ion-col col-10 class="gridCol">{{ mail.Email_ID }}</ion-col>
</ion-row>
</ion-grid>
<button
ion-button
full
color="other">Send</button>
also tell me what and how to bind values to checkbox so that I can get those email ids on button click. Thanks in advance.
