angularjs中输入表单验证

http://www.cnblogs.com/rohelm/p/4033513.html

 

<input type="email"

<div class="error-info">
                        <div class="help-block" ng-messages="formAbutmentModify.modifyEmail.$error" ng-if="formAbutmentModify.modifyEmail.$touched">
                            <p ng-message="required"><i class="fa fa-info-circle"></i>邮箱必填</p>
                            <p ng-message="email"><i class="fa fa-info-circle"></i>邮箱格式有误</p>
                        </div>
                    </div>

posted @ 2017-07-03 15:45  严于律己,宽以待人  阅读(132)  评论(0编辑  收藏  举报