typeahead.js-jspm
Make using typeahead.js with jspm a little easier.
The standard typeahead.js
npm package doesn't expose Bloodhound, and loads it's jQuery plugin as soon as it's required.
This package is just a small wrapper that allows you to access Bloodhound and load the jQuery plugin explicitly.
Usage
Bloodhound:
;var engine = local: 'dog' 'pig' 'moose' queryTokenizer: Bloodhoundtokenizerswhitespace datumTokenizer: Bloodhoundtokenizerswhitespace;
For jQuery just import
jquery, and then call loadjQueryPlugin()
. typeahead.js will attach itself to the previously required jQuery.
;;typeahead;