0

Necesito pasar el siguiente select a checked

<select class="form-control d-none" formControlName="manageable_communities" multiple>
<option *ngFor="let com of communities" value={{com.id}}>
    {{com.name}}</option>

1 respuesta 1

0
<mat-select [formControl]="manageable_communities" multiple> 
               <mat-option *ngFor="let com of communities" [value]="com.id" 
                             ">
                        {{ com.name}} 
                </mat-option> 
 </mat-select>

https://stackblitz.com/angular/kkrlkqomggj?file=src%2Fapp%2Fselect-multiple-example.ts

1
  • Por favor lee Cómo responder, editar y explicar como tu código resuelve el problema del OP enriquecería mucho tu aporte
    – BetaM
    el 10 may. 2021 a las 2:34

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

¿No es la respuesta que buscas? Examina otras preguntas con la etiqueta o formula tu propia pregunta.