Multiple Select Default Option(s)

id90travel asked 5 months 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?

id90travel commented 5 months ago

Nevermind, the way to do it is have the selected value be an array of the values you want selected. Thanks!

Please insert min. 20 characters.


Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No