禁用表单验证 [英] Disabling form validation

查看:107
本文介绍了禁用表单验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Angularjs 通过的FormController (如跟踪质朴的,肮脏的,等等)上运行我的形式。我不需要这个功能;我敢肯定,这增加开销我的 $摘要

Angularjs is running my forms through the FormController (eg tracking pristine, dirty, etc). I don't need this functionality; I'm sure it's adding overhead to my $digests.

我怎样才能把它关掉?

推荐答案

据我所知没有简单的开关关闭AngularJS验证。其实大部分的验证发生在 NgModelController 和输入指令 - 基本code中的 input.js文件。因此,要摆脱内置的验证,你将不得不从该文件重新开发code(加上一些其他人,如选择)。

AFAIK there is no simple switch to turn off AngularJS validation. Actually most of the validation happens in the NgModelController and input directives - basically code in the input.js file. So, to get rid of the built-in validation you would have to re-develop code from this file (plus some others, like select).

你识别验证code作为应用程序中的性能瓶颈?

Did you identify validation code as a performance bottleneck in your application?

这篇关于禁用表单验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆