Hi I am using bootstrap ui typeahead in my angularjs site. This works great. Just wondering whether it is possible to show some text like "No matches found" when the user type something that is not in the list.
The typeahead directive includes an attribute for this, typeahead-no-results.
Here is an example:
<input type="text" ng-model="asyncSelected" placeholder="Placeholder Text" typeahead="address for address in getLocation($viewValue)" typeahead-no-results="noResults" class="form-control">
Then use ng-if or ng-show to display your error message.
<div ng-if="noResults">
No Results Found!
</div>
For more reading material be sure to check out the bootstrap-ui docs