angularjs ng-repeat selected option
<p>How to get the object of selected option in angular js using <code>ng-repeat</code>? Sample <a href="https://jsfiddle.net/mpsbhat/779pz05o/" rel="nofollow">fiddle is here</a> where myself populating the dropdown as,</p>

<pre><code>&lt;select ng-model="id" ng-init="id = '-1'" ng-change="select(option)"&gt;
    &lt;option value="-1"&gt;--Select--&lt;/option&gt;
    &lt;option ng-repeat="option in list" value="{{option.id}}"&gt;{{option.name}}&lt;/option&gt;
  &lt;/select&gt;
</code></pre>

<p>If someone chose option with id=1, i want to get the object <code>{id:1, name:'A'</code> in <code>$scope</code> variable.</p>

<p><strong>EDIT:</strong> Myself tried with <code>ng-options</code> but filtering is not happening as required based on previous dropdown selection. <a href="https://jsfiddle.net/mpsbhat/779pz05o/5" rel="nofollow">sample fiddle</a></p>