I am facing an issue with ng-model in angularjS. I have this piece of code :
<select ng-model="node[col.field]">
<option selected="selected">-</option>
<option>I</option>
<option>W</option>
<option>E</option>
</select>
For example, When the user selects "I", I'd like to have node[col.field] = "1" and not node[col.field] = "I". Is that possible to do that ?
value=1in<option>tag