On this page, there is example code and rendering of it.
In particular, with the example code:
<mat-checkbox class="example-margin" [(ngModel)]="checked">Checked</mat-checkbox>
I was expecting the checkbox to be checked but on their page, it is blank. When using in my code it worked and checkbox is checked by default now. However, it crosses out ngModel
as deprecated. Am I supposed to do this differently?
1