How to disable angulars type=email validation?

前端 未结 5 1689
迷失自我
迷失自我 2020-12-16 14:01

How would you go about disabling, or at the very least changing, how Angular validates type=email inputs?

Currently, if you use type=email, Angular essentially doubl

5条回答
  •  抹茶落季
    2020-12-16 14:31

    On HTML5 you can use the form's attribute novalidate to disable browser's validation:

    If you want to create a custom validator in angularjs, you have a good tutorial and example here: http://www.benlesh.com/2012/12/angular-js-custom-validation-via.html

提交回复
热议问题