Topic: select multiple Default value
Hello, how to set the default values for a "select multiple" if i have an array of the values to be selected in the select? thank you
Arkadiusz Idzikowski staff answered 5 years ago
Please take a look at our multiselect documentation. You can find there examples for both template driven and reactive forms:
Using ngModel: https://mdbootstrap.com/docs/angular/forms/multiselect/#preselect-template
Using formControlName: https://mdbootstrap.com/docs/angular/forms/multiselect/#preselect-reactive
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: 8.8.2
- Device: dell notebook
- Browser: chrome
- OS: windows 10
- Provided sample code: No
- Provided link: No