Topic: Multiple Select Default Option(s)
id90travel pro asked 7 years ago
Hello, I know it is very simple to set default options for a regular select using ngModel. However, is it possible to set default options for a multi-select? I don't see it in the documentation. I've tried to set each option to true but that didn't work. Any other options?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
id90travel pro commented 7 years ago
Nevermind, the way to do it is have the selected value be an array of the values you want selected. Thanks!