On page load, I need a checkbox to already be 'checked', with the option for the user to uncheck it if they want. Despite trying to add [checked]="true" as recommended in some Stack Overflow answers, this solution is not working for me.
<label class="custom-control custom-checkbox" style="display: block">
<input type="checkbox" class="custom-control-input" id="myCheckbox" name="checkboxpolicy"
[(ngModel)]="hasaccepted" [checked]="true" (ngModelChange)="parentcheckbox($event,check1,check2,check3)">
</label>
Any other suggestions?