Angularjs 如何在alt中验证输入电子邮件?
我使用Angular JS中的foloowing库: 如何验证电子邮件类型的自动完成输入?如果未验证以显示错误 我试图使用Angularjs 如何在alt中验证输入电子邮件?,angularjs,Angularjs,我使用Angular JS中的foloowing库: 如何验证电子邮件类型的自动完成输入?如果未验证以显示错误 我试图使用field required=“true”,但id在电子邮件中无法验证: <angucomplete-alt placeholder="<%= t('projects.project_full.invitation.enter_email_title') %>"
field required=“true”
,但id在电子邮件中无法验证:
<angucomplete-alt
placeholder="<%= t('projects.project_full.invitation.enter_email_title') %>"
pause="100"
id="ex8b"
selected-object="selectedInvitationUsers"
local-data="invitable_users"
search-fields="fullname,email"
title-field="fullname,email"
minlength="1"
input-name="invite.email"
override-suggestions="true"
input-changed="inputChangeHandler"
field-required="true"
input-class="form-control form-control-small"/>
</div>
将元素指令更改为属性样式,例如:
<div angucomplete-alt
placeholder="<%= t('projects.project_full.invitation.enter_email_title') %>"
pause="100"
id="ex8b"
selected-object="selectedInvitationUsers"
local-data="invitable_users"
search-fields="fullname,email"
title-field="fullname,email"
minlength="1"
input-name="invite.email"
override-suggestions="true"
input-changed="inputChangeHandler"
field-required="true"
input-class="form-control form-control-small"/>
</div>
您是否将其包装在表单中?是的,我包好了