title: Set a default value in a select with simple array in AngularJS
body: <p>I have a simple array:</p>
  
  <pre><code>items = ['All','item1','item2','item3'];
  </code></pre>
  
  <p>I have been tried </p>
  
  <pre><code>&lt;select ng-model="ctrl.itemSelected" ng-change="ctrl.searchItem()"&gt;
      &lt;option ng-repeat="item in ctrl.items" value="{{ctrl.items.indexOf(item)}}"&gt;{{item}}&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>However, my select is being rendered in the page as</p>
  
  <pre><code>&lt;select ... &gt;
      &lt;option value='?' selected&gt; &lt;/option&gt;
      &lt;option value='0'&gt; All &lt;/option&gt;
      &lt;option value='1'&gt; Item1 &lt;/option&gt;
      &lt;option value='2'&gt; Item2 &lt;/option&gt;
      &lt;option value='3'&gt; Item3 &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>So I would like this were <code>&lt;option value='0'&gt; All &lt;/option&gt;</code> my option selected at the beginning</p>
  
  <p>What can I do?</p>