In my AngularJS application, I have a binding to the input field on ng-keyup to call a function every time value of the input field is changed.
<input type="text" ng-model="logoText.text" ng-keyup="updateTextLogo();">
This function updates text on a canvas and performs few more actions which take 2-3 seconds.
While type each letter with little delay (slow) is working fine by fast typing results in overlaying of canvas data.
Is it possible to add delay to execute the function on keyup?
Ex., Current scenario is that if a user has to type Hello the function is called on each letter.
I want to add a delay so that if the user has entered Hell within the dealy, the Hell word will be processed together instead of each letter.