AngularJS select > option group by
<pre><code>$scope.accounts = [ 
     {id: 1, name: 'Tommy',status:'premium'}, 
     {id: 2, name: 'Alexander',status:'free'},
     {id: 3, name: 'Lorem',status:'banned'},
     {id: 4, name: 'Ipsum',status:'premium'} 
     {id: 5, name: 'Dot sit',status:'Y'} 
 ];
</code></pre>

<p>How can I adjust dynamically to the situation in this json output?</p>

<p>for example, multiple data in groupby</p>

<pre><code>&lt;select&gt;
  &lt;option&gt;premium&lt;/option&gt;
  &lt;option&gt;free&lt;/option&gt;
  &lt;option&gt;banned&lt;/option&gt;
  &lt;option&gt;y&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>(My English is bad )</p>