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.
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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.