When I add an ngModel to my mat-checkbox, the checked = "checked" functionality stops working as expected.
The following code will work:
<mat-checkbox name="BlackBeard" ngModel checked = "checked"> Zehahaha? </mat-checkbox>
However, the following code will not work:
<mat-checkbox name="BlackBeard" ngModel checked = "checked"> Zehahaha? </mat-checkbox>
Please note: I am looking for a generic solution that can be used in scenarios where checkboxes are dynamically generated. While binding variables is one option, I prefer a solution that does not require this additional step.