I have a select lists with currencies. Its made like this:
<select ng-model="model.currency">
<option value="USD">Amercian Dollars</option>
<option value="EUR">Euro</option>
</select>
I need to find a way so that the option text changes when I select an option. I tried an ng-change but I cant find a way to set the option text. Just to clarify:
- The value should be the currency code
- The selected text shown should be the currency code
- If I click on my select the list of options should be the fullname
So whats missing in the scenario above is to set the value as text when selecting it.