-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing local data? #250
Comments
There's currently not a way to add local data post-initialization. What you'd have to do is destroy the typeahead and reinitialize it. |
@jharding Now that is a shame! But I guess it's not a massively common use-case, so perhaps it's not that awkward to destroy & re-init. |
In v0.10, if you are using a bloodhound suggestion engine, you can accomplish this by using |
@jharding is there a way to remove an existing entry in a similar vein? |
Not yet, but there's an issue opened to add a way, see #652. |
Does typeahead.js support changing of the local data array post-initialization while still getting the typeahead functionality for the newly inserted items?
I just tried to utilize this in my AngularJS app:
The text was updated successfully, but these errors were encountered: