title: Access the whole item in ng-options in AngularJS
body: <p>Not sure how else to title this. I'm using ng-options to generate a drop down. The source array is of the following form:</p>
  <pre><code>[{
      id:1,
      name: 'Bob'
   },
   {
      id:2,
      name: 'Tom'
   }...(etc)
  ]
  </code></pre>
  <p>my ng-options looks like this:</p>
  <pre><code>ng-options=&quot;item.name as item.name for item in myObj
  </code></pre>
  <p>which I need since the <code>ng-model</code> is to the <code>name</code> elsewhere. However, on the <code>ng-change</code>, I want to send (among other things) the <code>item.id</code>. But I can't figure out how to access that at that point.  Not only is <code>item.id</code> undefined in the <code>ng-change</code>, even <code>item</code> is undefined at that point. But, I can't use it in the `ng-options since I need it to model to the name elsewhere.</p>
  <p>How do I access <code>item.id</code> for use in the <code>ng-change</code>?</p>