验证时候,<p class='error'><p>内容显示不出来,
.error{
color:#a10;
}
input.error{
border:1px solid #a10;
}
/* p.error{
display:none;
}*/
<p class="error" ng-if="
signUpForm.username.$error.required) &&
signUpForm.username.$touched "
>用户名不可为空</p>
<p class="error" ng-if="(signUpForm.username.$error.minlength ||
signUpForm.username.$error.maxlength) &&
signUpForm.username.$touched "
>用户名应在4至32位之间</p>