1
The problem is that I have several select Multiple and when I select some options from a select they are added to Reactiveform correctly, but when I select some option from another select they are about writing, I need them not to overwrite. They are automatically generated.
this.form = this.builder.group({
id: [],
permissoes: ([{}]),
}, {});
<div class="col-md-6">
<select class="form-control" formControlName="permissoes" [compareWith]="compareFn" multiple>
<option *ngFor="let permissao of permissoes" [ngValue]="permissao">{{permissao.nome}}</option>
</select>
</div>
All selects are equal, it is possible to join all selects in this permissions array ?
Hello @Eduardo, welcome to Sopt. Enjoy doing the Tour to know better the operation of the site.
– João Martins
Related issue in that reply
– jcebidanes