title: How to use typeahead-on-select in Angular JS?
body: <p>I use <code>typeahead-on-select</code> from bootstrap Angular JS.
  Now I have writtem HTML code:</p>
  
  <pre><code>&lt;input type="text" ng-model="data.country[formData.country]" placeholder="Select country..." typeahead-on-select="onSelect($item, $model, $label)" typeahead="stuff as stuff.name for stuff in countries | filter:{name: $viewValue} | orderBy:stuff.name" aria-expanded="false" aria-owns="typeahead-16-5649"&gt;
  </code></pre>
  
  <p>When I enter symbol <code>a</code> on this input I get autocomplete unsorted result without countries are named from this symbol. What I do wrong? </p>