title: How to filter the list of countries by its first letter while search in ui-select using angular js?
body: <p><a href="https://i.stack.imgur.com/1w5VZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1w5VZ.png" alt="enter image description here"></a>    </p>
  
  <p>How can i search the word by filtering the list by its first letter?</p>
  
  <pre><code> &lt;td class="country-selection-cell"&gt;
           &lt;ui-select multiple ng-disabled="service.serviceName === null" ng-model="service.countries" close-on-select="false" ng-change="vm.checkIfDuplicatesExist(newServiceWithCountriesForm)"
                  ng-attr-title="{{service.serviceName === null?'Please select a service first':'Choose countries'}}" ng-required="true"&gt;
                  &lt;ui-select-match placeholder="Select countries..."&gt;
                       {{$item}}
                  &lt;/ui-select-match&gt;
                  &lt;ui-select-choices repeat="country in vm.countries | filter:$select.search track by $index" position='down'&gt;
                    {{country}}
                  &lt;/ui-select-choices&gt;
           &lt;/ui-select&gt;
   &lt;/td&gt;
  </code></pre>