Smarty: An Autocomplete UI in AngularJS
thumbtack.com
Smarty: An Autocomplete UI in AngularJS
1–10 of 22 posts
Re: Smarty: An Autocomplete UI in AngularJS
#2Re: Smarty: An Autocomplete UI in AngularJS
#3It should really be a directive though, so it adds all the required markup on its own.
Re: Smarty: An Autocomplete UI in AngularJS
#4Re: Smarty: An Autocomplete UI in AngularJS
#5Here is the autocomplete with AngularJS + RxJS https://github.com/Reactive-Extensions/rx.angular.js/blob/ma...
BaconJS home page showing an autocomplete in less than 15 LOC, http://baconjs.github.io
Re: Smarty: An Autocomplete UI in AngularJS
#6Re: Smarty: An Autocomplete UI in AngularJS
#7Re: Smarty: An Autocomplete UI in AngularJS
#8If you want not use Angular or another other framework, a fully functional autocomplete may be made with 10 lines of JavaScript. See demo: http://www.scriptol.com/javascript/autocomplete.php Adding a scrolling list of choices would requires two or three more lines.
It would be nice to wrap something like that in a web component so that it'd be trivial to reuse without a framework.
Re: Smarty: An Autocomplete UI in AngularJS
#9This reminds me of a jQuery plugin. It should really be a directive though, so it adds all the required markup on its own.
Re: Smarty: An Autocomplete UI in AngularJS
#10This means that you do not make a web call for each keystroke. That is a huge speedup.
I don't know why you would need to leverage Angular to make a typeahead, but it's a nice writeup nonetheless.