This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Typeahead Enhancement: messaging for when there are no matches #2016
Milestone
Comments
@joshuacc This sounds like a good addition. |
@bekos I need this for a project at work, so I'll try to put together a pull request. |
👍 |
pkozlowski-opensource
added
component: typeahead
and removed
component: typeahead
labels
Apr 19, 2014
Need this functionality as well. Is there any workaround for it? |
@wrestlero when there is no result, I return an array with one item with a custom property "isNoResult" set to true. Then in the custom template I check that property to show the correct html. Controller:
Custom template:
You can see that my typeahead has several others functionalities using this trick. (isGrouped, isLast). |
+1: It would be really useful to have the possibility of displaying a message when there are not results to the search. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
See #2792. |
The functionality will look like this: <input typeahead-no-results="noResults">
<span ng-if="noResults">No Results found</span> |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be nice if there was a way to specify a message to display when there are no matches. For example: "There are no cities matching 'Metropolis'. Please check for spelling errors."
The text was updated successfully, but these errors were encountered: