Когда я выбираю флажок в строке, он выбирает все флажки, доступные в таблице.Вот код, который я использовал для заполнения флажка в таблице
<thead>
<tr>
<th scope="col">Attach</th>
<th scope="col">Link</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let list of complianceReports.selectedData;let i = index">
<td>
<input id=" {{ i+1 }} " type="checkbox" name="attach[$index]" class="setup-checkbox" [(ngModel)]="complianceReports.attach[$index]">{{i+1}}
</td>
<td>
<input id="complianceReports.link[$index]" type="checkbox" name="link[$index]" class="setup-checkbox" [(ngModel)]="complianceReports.link[$index]">
</td>
</tr>
</tbody>
Как установить флажок в строке в соответствии с необходимостью в угловых 7