I know you can use a FormControl with an array to build out a multi option MatSelect, but am trying to use FormArrays to handle a multi select. I keep getting errors and after searching Google for a while have ended up with a workaround that just grabs the value from the FormArray, sets it to a FormControl as an array, and then subscribes to that to set the original FormArray value form the FormControl. I don't like this solution though and was wondering if anyone has a working example of how to use a FormArray with a MatSelect
<mat-select
multiple
placeholder="placeholder text"
[formControlArray]="nameOfFormControlArray">
<mat-option
*ngFor="let option of options | keyvalue: originalOrder ; let i = index"
[value]="option.key === 'true' ? true : (!option.key || option.key === 'false') ? false : option.key"
[attr.name]="formControlName">
{{ option.value.name || option.key }}
</mat-option>
</mat-select>