Skip to content
Advertisement

AngularJS input event trigger

I searched in internet, how to implement jQuery UI autocomplete into angularJS. I have found a very good sample and it is working. Here Sourcecode

HTML

JavaScript

JS

JavaScript

What I really get confused is, about trigger input event on the select event.

JavaScript

What is input for an event, I have never hear about it. I searched in Internet about input event but could not find something helpful.

Advertisement

Answer

A good way to think about it is like this: it’s a keyup event that filters out all keys which do not have an effect on the textual value of the input and fires when a completion is selected from a list of previously input values (thanks to @szeryf for the tip!). See this answer from stackoverflow for more details.

Advertisement