Can I debounce or throttle a watched <input> in AngularJS using _lodash?

前端 未结 4 1151
长发绾君心
长发绾君心 2020-12-08 03:54

I have the following which does a watch on an field that\'s bound to $scope.id. Every time the input field value changes the watch function gets e

4条回答
  •  有刺的猬
    2020-12-08 04:30

    You can use ngModelOptions in Angular 1.3.0

    HTML:

    Name:
    user.name = 

    More Info: https://docs.angularjs.org/api/ng/directive/ngModelOptions

提交回复
热议问题