Validation not triggered when data binding a number input's min / max attributes

前端 未结 5 1207
遥遥无期
遥遥无期 2020-12-01 08:29

I have numerous number input fields that have min and max attribute values that depend on logic elsewhere in my AngularJS app, but when using data bindings within these attr

5条回答
  •  萌比男神i
    2020-12-01 09:05

    Angular appears to now support ng-min and ng-max out of the box without the necessity of writing your own directives. See this Fiddle that is using Angular 1.4.2.

提交回复
热议问题