Currently, I am facing an issue with my select element:
<select ng-model="p.value" ng-options="q for q in p.value">
<option value="">Select an animation</option>
</select>
The initial values in p.value
are ['AAAAA', 'BBBBB', 'CCCCC']
, but upon selecting an option, the select menu updates to display different options like:
<option>A</option>
<option>A</option>
<option>A</option>
<option>A</option>
<option>A</option>
It is evident that there is an issue with my approach of using the same value for the model and options. Can someone guide me on the correct way to resolve this problem?