Implement a delay on $scope.$watch

前端 未结 5 1611
醉话见心
醉话见心 2021-02-07 03:33

I was wondering whether or not it is possible to implement a slight delay on $scope.$watch. I have the following which queries the server, so I\'d like to implement a slight del

5条回答
  •  日久生厌
    2021-02-07 03:41

    you can use ng-model-option, if the model 'query' is a Html tag or Angular directive, for Ej:

    
    

    You can see the Angular Doc here: https://docs.angularjs.org/api/ng/directive/ngModelOptions

提交回复
热议问题