I have the following code to get the list of selected options of a multiple selection component.
<select multiple class="custom-select" [(ngModel)]="selectedOptions">
<option *ngFor="let option of all_options" [value]="option">
{{option.name}}
</option>
</select>
The binding to the selectedOptions
array is working fine however, does anyone know if it is possible to save the selected objects in the order clicked by the user?
Thank you!