title: Angular UI Typeahead Limit Results when using Promises
body: <p>I forked a Plunker as an example <a href="http://plnkr.co/edit/ylR1mel46FXTXzdvfHpa?p=preview" rel="nofollow">http://plnkr.co/edit/ylR1mel46FXTXzdvfHpa?p=preview</a></p>
  
  <p>when using promises inline in the markup like so: </p>
  
  <pre><code>&lt;div class='container-fluid' ng-controller="TypeaheadCtrl"&gt;
      &lt;pre&gt;Model: {{selected| json}}&lt;/pre&gt;
      &lt;input type="text" ng-model="selected" typeahead="state for state in getStates($viewValue) | limitTo: 5"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>if you type in "A" in the controller, you can see that the limitTo option is ignored.  Is this possible to use in this way?</p>