I have the following code:
$http.get('/estados').success(function(retorno) {
$scope.ufs = retorno.ufs;
console.log(retorno);
});
and the result of console.log(retorno)
is:
NowI'mtryingtoshowthevaluesofthisreturnina<select>
ofHTML:
<sectionclass="input-field col l1 s12">
<i class="material-icons prefix">public</i>
<select name="uf" required="true">
<option ng-repeat="(key, value) in ufs">[{value.sigla}]</option>
</select>
</section>
But it is not showing any value, but when inspecting the element I see the code below:
It is assigning the values to <option>
of <select>
but on the page for the client select nothing appears.
Has anyone ever gone through this?
NOTE: I am using {[
because I changed the settings.
app.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('[{').endSymbol('}]');
});