Open guzmo opened 6 years ago
Hi,
I've been trying to hook up multi select to a FormArray of Objects, so far without any luck. How to connect a select to an FormArray of objects? Below is a code snippet, a bit masked but shouldn't matter.
<select formControlName="myArray" multiple materialize="material_select" [materializeSelectOptions]="my.options"> <option *ngFor="let opt of my.options" [selected]="selectedOpt(opt)" [value]="opt">{{opt.name}}</option> </select>
The form is being initialized on the fly but I've tried adding this.optionsAction.emit('material_select') after, and it didn't help.
this.optionsAction.emit('material_select')
Any help would be appreciated!
Hi,
I've been trying to hook up multi select to a FormArray of Objects, so far without any luck. How to connect a select to an FormArray of objects? Below is a code snippet, a bit masked but shouldn't matter.
The form is being initialized on the fly but I've tried adding
this.optionsAction.emit('material_select')
after, and it didn't help.Any help would be appreciated!