title: how to set a default value for angular ui-select
body: <p><strong>Question :</strong> </p>
  
  <p>how to set default value to the angular ui-select</p>
  
  <p>drop down values are fetched from object and object wont be having default value.</p>
  
  <p>and ui-select should set the default value in Frontend.</p>
  
  <p>eg:</p>
  
  <p>drop down values are as follows</p>
  
  <p><strong>1 -all fruits</strong>
  <em>2 -apple
  3 -banana 
  4 -water melon</em></p>
  
  <p>value from 2 to 4 are derived from object sent from server.but Frontend need to set default value ie 1 - all fruits</p>
  
  <p>Referring to the below example set via ui-select2 how to migrate this in ui-select?</p>
  
  <pre><code>&lt;select ng-model="fID" class="select"  ui-select2 data-placeholder="select fruit"&gt;
              &lt;option value=""&gt;All fruits&lt;/option&gt;
              &lt;option ng-repeat="f in frits value="{{f.fID}}"&gt;{{f.name}}&lt;/option&gt;
          &lt;/select&gt;
  
  &lt;ui-select theme="select2" ng-model="fruits.selected"&gt;
              &lt;ui-select-match placeholder="select please" allow-clear="false"&gt;                    {{$select.selected.name}}
  &lt;/ui-select-match&gt;
              &lt;ui-select-choices repeat="f in fruits | filter:$select.search"&gt;
                  &lt;div ng-bind-html="f.name | highlight: $select.search:'underline'"&gt;&lt;/div&gt;
              &lt;/ui-select-choices&gt;
          &lt;/ui-select&gt;
  </code></pre>
  
  <p><a href="http://plnkr.co/edit/a3KlK8dKH3wwiiksDSn2?p=preview">http://plnkr.co/edit/a3KlK8dKH3wwiiksDSn2?p=preview</a>
  <a href="https://github.com/angular-ui/ui-select">https://github.com/angular-ui/ui-select</a>
  Link :angular-ui/ui-select</p>