I have a simple dropdown:
{{x}}
<select ng-model="x" ng-options="k for k in [1,2,3]"></select>
easy: {{x}} will be replaced with the selected value 1, 2 or 3.
But what if my data looks like this?
<select ng-model="x" ng-options="k.a for k in [{a:1},{a:2},{a:3}]">
I want the ones, twos and threes depending on selection but I usually get "{a:1}".
Hm.. this suggests that maybe I won't get what I want. Ideas?