Hello,
I have an html element with input type="text" (textbox) and basically on
any kind of change ( click of mouse/keyboard input ), i want to call an api . I checked the documentation which says on "
change()" event i can do that. the problem is the API is called twice or even quadruple times. So i used
ng-change to call api. It works but then ng-change is not called when I use the reset option via "
showResetIcon: true". The
reset thing doesn't changes the model value at all. Hence at that time I use
change() event to clear the value. Could you please look into it and provide a solution for clear() event as the above method sometimes works and sometimes doesn't works.
I am using ejAutocomplete in angularjs controller and not in cshtml javascript part, as it never allows me to use both ng-change and change event at the same time. Only ngchange will work if i try to use both.