In an Angular 7 SPA, I'm tasked with giving the user a list of checkboxes, which will bind to UUIDs.
<ng-container formArrayName="mappedSegmentUuids">
<div *ngFor="let seg of allsegments; let i = index">
<mat-checkbox [formControlName]="i" [value]="seg.uuid">{{seg.mydescription}}</mat-checkbox>
</div>
</ng-container>
While I can set the 'value' on the mat-checkbox, this will revert to true/false as soon as the user interacts with the checkbox. How can I bind an arbitrary value to the "checked" state of a mat-checkbox?
Edit Added https://stackblitz.com/edit/angular-6pzu2e to illustrate issue.