I'm trying to generate a lists of checkboxes using ngfor. Everything works fine but if I check the 1st checkbox on the bottom card row it seems to think I checked the 1st box of the 1st card row.
Here's a small gif that demonstrates the issue. http://www.giphy.com/gifs/dQpr1jkRci0DaZoLMl
<div *ngFor="let task of taskdata" class="card" >
<div *ngIf="task.task1" class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheck1"
(change)="getdataonID($event.target.checked)" [checked]="task.isDone1">
<label class="custom-control-label" for="customCheck1">{{task.task1}}</label>
</div>