title: ui-select selected not working in angularjs
body: <p>I'm currently using <code>ui-select</code> component in AngularJS. </p>
  
  <pre><code>&lt;ui-select ng-model="tipData.category" search-enabled="false" name="category" required="required" class="orange-site-color-select custom-select"&gt;
    &lt;ui-select-match&gt;&lt;span class="ui-select-result"&gt;{{$select.selected}}&lt;/span&gt;&lt;/ui-select-match&gt;
    &lt;ui-select-choices repeat="tipcat in tipCategory"&gt;&lt;span ng-bind-html="tipcat.name"&gt;&lt;/span&gt;&lt;/ui-select-choices&gt;
  &lt;/ui-select&gt;
  </code></pre>
  
  <p>I'd like to know how can I implement auto select value displayed in that <code>ui-select</code> as retrieving data (<strong>just id</strong>) from database and displayed in that <code>ui-select</code>?</p>