wait for user to stop typing for 1 second before calling function angular code example
Example: stopped typing jquery
var timer = null;
$('#text').keydown(function(){
clearTimeout(timer);
timer = setTimeout(doStuff, 1000)
});
function doStuff() {
alert('do stuff');
}