I am using below library to use autocomplete directive in my module for AngularJS!. [https://github.com/JustGoscha/allmighty-autocomplete]
I want to execute a function when user has stopped typing, is there a way I can do this?
I am using below library to use autocomplete directive in my module for AngularJS!. [https://github.com/JustGoscha/allmighty-autocomplete]
I want to execute a function when user has stopped typing, is there a way I can do this?
You can do it using ng-change and ng-model-options (Angular 1.3+ only):
<input type="text"
ng-model="myVar"
ng-model-options="{debounce: 1000}"
ng-change="functionToBeCalled()"/>
debounceproperty. Dunno if it will work with that directive, but you can give it a try.on-typeattribute? Have you tried it?on-typeevent. It will get restarted every time the user types but won't if they stop typing.