twitter / typeahead.js

typeahead.js is a fast and fully-featured autocomplete library
http://twitter.github.io/typeahead.js/
MIT License
16.52k stars 3.21k forks source link

How do I change the source dynamically? #1792

Open drkameleon opened 4 years ago

drkameleon commented 4 years ago

I'm using Typeahead (without bloodhound) and trying to switch between two datasets dynamically. Simply re-initializing Typeahead, does work - but without destroying the older instance.

How can I do that?