Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 如何在alt中验证输入电子邮件?_Angularjs - Fatal编程技术网

Angularjs 如何在alt中验证输入电子邮件?

Angularjs 如何在alt中验证输入电子邮件?,angularjs,Angularjs,我使用Angular JS中的foloowing库: 如何验证电子邮件类型的自动完成输入?如果未验证以显示错误 我试图使用field required=“true”,但id在电子邮件中无法验证: <angucomplete-alt placeholder="<%= t('projects.project_full.invitation.enter_email_title') %>"

我使用Angular JS中的foloowing库:

如何验证电子邮件类型的自动完成输入?如果未验证以显示错误

我试图使用
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>


您是否将其包装在表单中?是的,我包好了