title: Last element of ng-options
body: <p>Given the following piece of code:</p>
  
  <pre><code>&lt;select label="someSelect" 
          ng-model="someModel" 
          ng-options="p as p.bar group by p.foo for p in ps"&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Is there out a way to know when the select has been populated with the corresponding option values? </p>
  
  <p>I know this can be achieved within <code>ng-repeat</code> directive creating a custom directive and checking <code>scope.$last</code> property but this doesn't seem to work in this case. </p>
  
  <p>The idea behind this is that I want to be able to use Select2 plugin (<a href="http://ivaynberg.github.io/select2/" rel="nofollow">http://ivaynberg.github.io/select2/</a>). Since <code>someModel</code> doesn't match any value of the provided options, <code>ng-options</code> adds by default an extra <code>&lt;option value="?"&gt;&lt;/option&gt;</code> (as Josep already pointed out). A possible solution might be initializing this scope property (<code>someModel</code>) in the controller with a valid value, but the data provided (<code>ps</code> in this case) might be empty, so no initialization value is possible.</p>
  
  <p>My first approach is to know when the select rendering has finished, so that I can remove the extra option value and initialize properly the selext box again and again as the model changes.</p>
  
  <p>Is it actually possible? Is there a better way to achieve this?</p>