Angularjs验证即使在验证后也会显示Error meassage

时间:2018-01-24 08:33:04

标签: angularjs angular-validation

这就是为什么我的验证不起作用 我做错了什么,请帮助我

<div ng-controller="LoginCtrls">
    <form novalidate name="f1" ng-submit="SaveData(User)">
        <div class="form-group">
            <label>Email address:</label>
            <input type="text" class="form-control" name="log_email" ng-model="User.Email" required>

            <span ng-show="(f1.log_email.$error.required) && f1.log_email.$dirty) ||(f1.log_email.$touch)">Please Enter Your Email</span>

        </div>
</form>

1 个答案:

答案 0 :(得分:0)

你的病情应该是

QBUUser * user = multiCombinedArray[indexPath.row];
chatUsersCell.chatUserFullName.text = user.fullName