I'm implementing a select list that has options the Brazilian states.
I would like to return the selected value according to the return of a web service. For example, if the service returns RJ
then RJ
must be the option selected .
This is very simple to implement with Javascript and Jquery, but I've never done it in Angular. Anyone have a suggestion?
<select id="txtUf" class="customSel">
<option value="0" selected="selected">Selecione</option>
<option value="AC">AC</option>
<option value="AL">AL</option>
<option value="AP">AP</option>
<option value="AM">AM</option>
...
</select>