1

I am using angular material (https://material.angular.io) in my application. I have tried with multiselect dropdown in material angular by using the chips (mat-chip-list). But I couldn't achieve it. Is there any one achieve it using angular material? If please share link or samples?

5

1 Answer 1

1

This is already possible with Angular Material. Just add multiple or [multiple]="true" to your mat-select.

<mat-form-field>
  <mat-select multiple>
    <mat-option *ngFor="let option of options" [value]="option">
      {{ option }}
    </mat-option>
  </mat-select>
</mat-form-field>

StackBlitz Demo

Sign up to request clarification or add additional context in comments.

2 Comments

Hi.This I have tried. But the selection of values in the checkbox. I don't required the checkbox. This must be normal select option. Once the user selects the option, It must be appear in text box with 'x'. If i click on 'x'. It should close. In this user can select multiple also.So Only i have tried with mat-chip-list. Is there any suggestion?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.