I need to pass an id through a method on a form when my checkbox is checked. I tried several ways without any results.
Below is the code
{{event.name}}
<div class=" col-3 simple-Input">
<div class="row">
<label for=""></label>
</div>
<div class="row">
<label for="">{{event.date}}</label>
</div>
<div class="row">
<label for="">{{event.adress_id}}</label>
</div>
</div>
<div class="col-3">
Mapas
</div>
<div class="col-6 simple-Input">
<table class="col-12">
<thead>
<th>convidado</th>
<th>convidar</th>
<th>confirmação</th>
</thead>
<tr *ngFor="let guest of guests">
<th>{{guest.name}}</th>
<th>{{guest.id}}</th>
<th>
<input type="checkbox" [ngModel]="eventGuest" id="eventGuest" autocomplete="off" name="guest.id" [value]="guest.id">
</th>
<td style="text-align:center;">
<fa-icon *ngIf="guest.confirmed==1" [icon]="faCheckSquare"></fa-icon>
<fa-icon *ngIf="guest.confirmed==0" [icon]="faSquare"></fa-icon>
</td>
</tr>
</table>
<div class="col-4" style="align-items: flex-end; display: flex; justify-content: flex-end;">
<div class="submit-Input">
<input type="submit" value="Convidar">
</div>
</div>
</div>
</div>
</div>
</form>