I am doing an Angular 12 Material APP.. I have a list of checked created dinamycally like this
<li *ngFor="let chanel of dataSourceChannelLevel">
<mat-checkbox id= formControlName="Channel"
(change)="onChangeEventFunc( $event)">
</mat-checkbox>
</li>
I want also to checked them depending on the condition of
I have tried with value= but those not work... also with
[checked]=
but got this error
Parser Error: Got interpolation () where expression was expected at column 0 in []
The only things it works is [ngModel]
but it checked all the mat-checkbox where checked or unchecked.
Is there a way to do it?
Thanks
Aucun commentaire:
Enregistrer un commentaire