Presently, the md-search-text-change event fires a call every time I type something in . I want to delay this. I've tried using debounce. But that has not worked.
Asked
Active
Viewed 2,071 times
3
-
Check if this post is helping you: https://stackoverflow.com/questions/43048970/execute-a-function-when-user-has-stopped-typing-in-angularjs – user22185946 Jul 06 '23 at 15:16
2 Answers
5
You can use the 'md-delay' attribute of md-autocomplete to achieve this. look at the documentation for more help:
https://material.angularjs.org/1.1.5/api/directive/mdAutocomplete

Karan Shishoo
- 2,402
- 2
- 17
- 32
0
the best way of doing so is by using AngularJs md-autocomplete directives. You just need to add md-delay=""
and/or md-min-length=""
(in case you want to start searching after a certain input length).
Hope it helped though a bit late.

MGE
- 11
- 4