I develop some application using AngularJS (v1.5.8). For validation purposes, I need to submit both key and value from select input, I mean the selected option (key and value) in angular form.
<select id="someId" ng-model="someModel" name="someName">
<option ng-repeat="(key, value) in someDictionary" value="{{::key}}">{{::value}}</option>
</select>
Does anybody know how to achieve this? I don't want to override the submit method, I'd like to get the key and value in json in any kind of format.