I have a vue component with a multiselect dropdown
<select name="roles[]" id="roles" class="form-control" multiple="multiple">
<option v-for="role in roles" :value="role.id">
{{ role }}
</option>
</select>
A user can have many roles so I have a some props which hold the user (object), all roles (Array roleID => roleName), and selectedRoles( Array id of users current role(s) )
how can I preselect the roles the user currently has?