title: Angular.js selecting from a hash / object
body: <p>I have a simple dropdown:</p>
  
  <pre><code> {{x}}            
   &lt;select ng-model="x" ng-options="k for k in [1,2,3]"&gt;&lt;/select&gt;
  </code></pre>
  
  <p>easy: {{x}} will be replaced with the selected value 1, 2 or 3.</p>
  
  <p>But what if my data looks like this?</p>
  
  <pre><code> &lt;select ng-model="x" ng-options="k.a for k in [{a:1},{a:2},{a:3}]"&gt;
  </code></pre>
  
  <p>I want the ones, twos and threes depending on selection but I usually get "{a:1}".</p>
  
  <p>Hm.. <a href="https://groups.google.com/forum/#!topic/angular/OqFpB4souEI" rel="nofollow">this</a> suggests that maybe I won't get what I want. Ideas?</p>