Topic: Multiple Select Default Option(s)

id90travel pro asked 6 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?

id90travel pro commented 6 years 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.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags