Smarty: An Autocomplete UI in AngularJS
11–20 of 22 posts
Re: Smarty: An Autocomplete UI in AngularJS
#12Re: Smarty: An Autocomplete UI in AngularJS
#13Re: Smarty: An Autocomplete UI in AngularJS
#14Angular Bootstrap's Typeahead directive does this job pretty well, although we've had to do some template overriding and funky directives to get the functionality we needed (e.g. switching the results to a different set by clicking an item in the dropdown). Glad to see more alternatives being made out there. Nice job!
Re: Smarty: An Autocomplete UI in AngularJS
#15If 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.
Re: Smarty: An Autocomplete UI in AngularJS
#16- Use ng-keydown on the input field (less overhead than $scope.$watch)
- $http.get has a built in promise. No need to build another one on top of it.
- No need to splice the response, just pass the whole array and use the "limitTo" filter on the results.
Re: Smarty: An Autocomplete UI in AngularJS
#17Re: Smarty: An Autocomplete UI in AngularJS
#18FYI, the 360KB PNG on your site made me feel like I was back on dialup.
Re: Smarty: An Autocomplete UI in AngularJS
#19Re: Smarty: An Autocomplete UI in AngularJS
#20FYI, the 360KB PNG on your site made me feel like I was back on dialup.
Should replace the image with an actual demo. I couldn't find one.