I've built, for the select options, the following array:
$scope.typeOptions = [
{ name: 'Pontos', value: 'PONTOS' },
{ name: 'Multipla Escolha', value: 'MULTIPLA_ESCOLHA' },
{ name: 'Texto', value: 'TEXTO' }
];
$scope.type = $scope.typeOptions[0].value;
And used the following on my HTML view
<select ng-model="type" required="required" ng-options="t.value as t.name for t in typeOptions">
</select>
But then it gives me the following:
<select ...>
<option value="string:PONTOS" label="Pontos" selected="selected">Pontos</option>
...
</select>
Adding string:
to the beggining of each value. How do I remove it?
EDIT: Although it's said that this is intentional and this value seen on HTML does not corresponds to the actual value, when the form is submitted, the value recieved comes with the "string:"
part as well.