I have a list of checkboxes generated from a ngFor loop and a reset button. When the reset button is clicked, if any of the checkboxes are checked I want to uncheck them.
Here is my html
<li *ngFor="let item of listItems" class="filter-list__item">
<label class="filter-list__itemLabel">
<input type="checkbox" value="{{item.id}}" [checked]="checked" />
<span innerHTML="{{item.name}}"></span>
</label>
</li>
<button (click)="resetAll()"></button>