angularjs ng-minlength validation is not working, form still being submitted

前端 未结 6 2003
半阙折子戏
半阙折子戏 2020-12-14 18:16

I am trying to submit the form on only successful validation. validation is working for required but not working for ng-minlength

form input is invalid but form is

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 18:38

    I'm facing the same issue, and I think you can only disable the button or ignore the entered value by yourself. You can also check the $valid property in your controller and ignore the value... It is not so nice, but I found no other way.

提交回复
热议问题