title: Add new data to typeahead result on scroll
body: <p>I'm using <code>angular bootstrap typeahead</code>. I would like to add a functionality for <code>infinite scroll</code> in that, for that i have added a small directive for scroll functionality and some changes in <code>typeahead</code> template, scroll directive works as expected but typeahead not updating a view after result is update.</p>
  
  <p>My input is like :</p>
  
  <pre><code>&lt;input type="text" ng-model="variable" placeholder="Search..." typeahead="obj as obj.text for obj in getObject($viewValue)" typeahead-wait-ms="500" /&gt;
  </code></pre>
  
  <p><strong>typeahead</strong> template :</p>
  
  <pre><code>&lt;ul class="dropdown-menu typeahead-custom" ng-scroll="getObject('{{query}}')" ng-scroll-direction="down" ng-show="isOpen()" ng-style="{top: position.top+'px', left: position.left+'px'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}"&gt;
      &lt;li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}" should-focus="isActive($index)"&gt;
          &lt;div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"&gt;&lt;/div&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>and <strong>getObject</strong> Function :</p>
  
  <pre><code>$rootScope.lastResult = [];
  $rootScope.getObject = function(str) {
      return  $http({
          url: "someUrl",
          method: "post",
          headers: {'Content-Type': 'application/json'},
          data: {str: str, page_limit: 10}
      }).then(function(response) {
          $.merge($rootScope.lastResult, response.data.data);
          return $rootScope.lastResult;
      });
  };
  </code></pre>
  
  <p>when I type something in typeahead input it works fine, but when i scroll into the typeahead template it calls a function and updating <code>lastResult</code> variable but didn't updating a <strong>DOM element of typeahead</strong>.</p>
  
  <p>Any help? Please....</p>