Is there a way to display the full path of a select with nested options in angular? When I click on an option, currently it only shows the option value.
<select>
<optgroup label="A">
<option>1</option>
<option>2</option>
<option>3</option>
</optgroup>
<optgroup label="B">
<option>4</option>
<option>5</option>
<option>6</option>
</optgroup>
</select>
For example, if I select option 5, the default select will only show "5". Is there a way to make it show "B / 5" instead?