I've searched solution in Google but not found.
Tried 1:
<input type="text" #txtSearch (keyup)="onKeyUp(txtSearch.value)">
And search.component.ts
onKeyUp(val){
setTimeout(function(){
console.log(val);
},500);
}
Tried 2
I'm using similar here How to achieve a debounce service on input keyup event in angular2 with rxjs but in Angular 7 not working.
Finally
I expect keyup delay 0.5s then console.log(value);