jeudi 15 avril 2021

I need to get a checkbox already checked with angular material

I have this code: <ng-container matColumnDef="Estado"> <th mat-header-cell *matHeaderCellDef>Estado</th> <td mat-cell *matCellDef=""><mat-checkbox *ngIf=!state mat-checked></mat-checkbox></td> </ng-container> When the condition in the ngIf is met the checkbox appears unchecked, but I need to get it already checked, I don't know how, hope you can help me, thank you.




Aucun commentaire:

Enregistrer un commentaire