164
rated 0 times
[
165]
[
1]
/ answers: 1 / hits: 21187
/ 7 Years ago, tue, october 3, 2017, 12:00:00
I have text box and assigned to it keyup
event a search function but I want it to happen with delay, not on every keypress
here is the html code :
<input type=text [(ngModel)]=searchedKPI (keyup)=searchConfigTree()>
and here is ts code :
list = list.filter(item => item.label.toLocaleLowerCase().includes(this.searchedKPI.toLocaleLowerCase())).slice();
and here is the example I wanted to search text string but the event happens 4 times, I want to this happens once only for text string :
what the solution?
More From » angular