Select to autocomplete angular directive

21,780

Angular UI ( http://angular-ui.github.io/bootstrap/ ) has a directive Typeahead which should fit your requirements. Look at that page for the 3rd example under Typeahead section with title Custom templates for results

Share:
21,780
Ben
Author by

Ben

Philosophy and history student Strong interest in science and mathematics - trying to teach myself about these subjects Especially interested in interdisciplinary research Specific interests: Logic History and philosophy of mathematics History and philosophy of science Science and its influence on society Pseudo-sciences and their influence on society Philosophy of religion and atheism Teaching of mathematics and self-study techniques, including online teaching and MOOC's (Massive Open Online Courses) Certainty and uncertainty in human life Gaia hypothesis, global brain, complexity, evolution, cognition,.. Game theory Fundamental problems in computer science Neuroethics

Updated on July 09, 2022

Comments

  • Ben
    Ben almost 2 years

    I am looking for a way to make my select into an autocomplete field. I know of angularJS directives that give you autocomplete functionality, but these don't allow the input name (what the user sees) and the input value (what the system uses) to be different. I need a select box, however, because the option name (that the user will see) and the option value (that the system will use) are different.

    I know of such a plugin for jQuery, selectToAutocomplete, which is pretty neat and works well, but I would prefer to stay with AngularJS as much as possible. Is there an AngularJS alternative for jQuery selectToAutocomplete?

  • Ben
    Ben about 10 years
    Wow, this did actually work. I didn't expect it to be that easy. :) Thanks!