angular directive encapsulating a delay for ng-change

前端 未结 4 718
南笙
南笙 2020-11-28 09:21

I have a search input field with a requery function bound to the ng-change.

 
4条回答
  •  甜味超标
    2020-11-28 10:08

    As of angular 1.3 this is way easier to accomplish, using ngModelOptions:

    
    
    Syntax:  {debounce: Miliseconds}
    

提交回复
热议问题