I need help with customizing my dropdown control
<div ng-repeat="prop in props" style="margin-bottom: 10px;">
<label class="col-md-4 control-label">Property {{$index + 1}} ({{prop.Value}})</label>
<div class="col-md-8">
<select ng-model="gradingvalues[$index]" class="form-control">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</div>
Within the JavaScript code, I have initialized the gradingvalues array like this:
$scope.gradingvalues = [];
My goal involves adding more information to the selected dropdown value, such as including the propertyID. Can I achieve this by modifying the ng-model attribute like so?
ng-model="gradingvalues[$index, propertyID]"
Is it feasible to implement this functionality?