I'm looking to develop a Google-like search for my web app, that includes 
both typeahead/autocomplete AND search-as-you-type, the way Google's search 
engine does these days. I have tried a variety of approaches without 
success. I combined typeahead with ng-model=search in one input, but the 
"selections" from typeahead won't capture to the ng-app. Tried tbosch's 
approach, couldn't get that to solve it. Tried UI-select, just basically 
works like typeahead. Any recommendations on best approach?

The typeahead + ng-model=Search as one input seemed closest, but somehow I 
would have to get selected items in typeahead to trigger the 
ng-model=Search to grab the new input value. 

Any help?


<div id="container" class="bs-example" ng-app='demos_cfg' 
ng-controller='main_control'>
<div class="bs-example">
<input type="search" placeholder="Enter search" ng-model="search" 
id="search" name="typeahead" class="typeahead tt-query" autocomplete="off" 
spellcheck="false">
</div>

<div id="showit">
<div ng-repeat="data in loaded_demos">
<div class="blog">
<h2>{{data.name}}</h2>
<p>{{data.desc}}</p>
</div>
</div>
      </div>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to