I'm dealing with a scenario like this:
<span ng-repeat="personNum in unit.PricePerson">
{{personNum}}
<select ng-model="personNum"
ng-options="o as o for o in unit.PricePerson track by $index"></select>
</span>
The unit.Price
contains an array of numbers, such as [5,6,7,8,9], but each select is displaying the value nine. I want the first select to show option 5, the second one to display 6, and so on. Additionally, I've noticed that I can't change the options using the mouse.
There are 5 select boxes being generated, which is correct. Also, numbers from 5 to 9 are being generated as options within each select. These aspects are working fine.