How can I compare a dynamic created list of checkboxes with my database value?
If the value in my database is not null, its a checked box.
That´s the way how I generate my checkboxes. I already tried something with ngModel, but I have no idea how to handle this.
<div class="list-container">
<ng-container *ngFor="let char of allATypes">
<mat-checkbox [(ngModel)]="char.checked"> {{char.bezeichnung}} </mat-checkbox>
</ng-container>
</div>
My goal is something like this pseudocode if(aType.allgemeinesMerkmal.bezeichnung) { char.checked = true) }
How can I handle this?