0
I have a component select
and would like to convert the value
for the format Number
'cause when I go save I need a value 2
and not like this "2"
the ideal would be to convert all tag
<option>
<div class="form-group col-md-3">
<label class="lb">Tipo docto liquidação:</label>
<select ng-model="notaLiquidacao.idTipoDoctoLiquidacao" class="form-control" >
<option value=2>Nota Fiscal de Produtor</option>
<option value=3>Nota Fiscal</option>
<option value=4>Contranota de Venda</option>
<option value=6>DANFE</option>
</select>
</div>
Have you tried
parseInt
?– bio
I tried but I couldn’t convert them all
value
– Eduardo Krakhecke
because it is angular... if you have the attribute typed in your model, theoretically it should already interpret value as number
– Leandro Angelo
yes, but when I get the object information is in the String format
– Eduardo Krakhecke