Angularjs表单字段复位型电子邮件 [英] Angularjs reset form field with type of email

查看:109
本文介绍了Angularjs表单字段复位型电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在AngularJs看来,当您尝试重置形式,所有的车型设置为空对象,如果输入键入=电子邮件这不会得到清除。将其更改为键入=文字然而工作,但你失去验证红色边框。

In AngularJs it seems that when you try to 'reset' a form, by setting all of the models to an empty object, if an input is type="email" this doesn't get cleared. Changing it to type="text" works however, but then you lose the red border on validation.

反正是有复位或清除电子邮件类型的输入?

Is there anyway to reset or clear an email type input?

谢谢!

推荐答案

为了记录,请参考OP意见的解释相关,看到这的为演示plunker

Just for the record, refer to the OP comments for explainations and see this plunker for a demo.

这篇关于Angularjs表单字段复位型电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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