title: How to get selected items id in select option in angular js
body: <p>In the following code update function is not getting the proper ID passed it.</p>
  
  <p>How to get the proper is in angularJS for selected option.</p>
  
  <pre><code>&lt;select 
      ng-model="selectedCategory" 
      size="10" 
      ng-options="category.id as category.name for category in Categories | orderBy:'name'" 
      ng-change="update(Categories[selectedCategory-1].id)"&gt;
  &lt;/select&gt;
  </code></pre>