How to put a delay on AngularJS instant search?

Posted by Jessica Taylor | Updated on

Want to put a delay on AngularJS instant search? There would be cleaner ways to do this, but probably the easiest way would be to switch the binding so that you have a $scope property defined inside your Controller on which your filter operates. That way you can control how frequently that $scope variable is updated.

Here is an example:

JS Code:

HTML:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers