ngChange-like functionality for the entire form

后端 未结 4 2073
余生分开走
余生分开走 2020-12-05 04:21

I would like to do an equivalent of ng-change for the entire form whenever there is a change in one of its input fields.

I know that since AngularJS 1.3

4条回答
  •  鱼传尺愫
    2020-12-05 04:48

    As per Eric Soyke comment you could hook up the check of the form change on the keyup event.

    This way you could simply use the builtin directive ng-keyup:

提交回复
热议问题