I am currently looking to enhance a checkbox that used to handle backend calls, but now only needs to function as a simple checkbox that turns off other checkboxes when selected:
<label class="custom-control custom-checkbox" style="display: block">
<input type="checkbox" class="custom-control-input" id="myCheckbox" name="myCheckbox"
[(ngModel)]="checkboxPolicy" (ngModelChange)="parentcheckbox($event,child1,child2,child3)">
<span class="custom-control-indicator"></span>
<span class="custom-control-description">
<span id="checkboxstart">
</span>
</span>
</label>
I want to eliminate the ngModel entirely, but the input field still requires it. Is there a way to create a data-less checkbox solely for UI purposes? It should not store any data, just trigger the ngModelChange method for controlling other checkboxes.