为什么$touched没有效果
<form name="SignForm" ng-submit="submitForm()">
<div class="form-group">
<label>用户名</label>
<input type="text"
class="form-control"
name="username"
ng-model="userdata.username"
required=""
ng-minlength="4"
ng-maxlength="16"
></input>
<div>{{SignForm.username.$touched}}</div>
<p class="error"
ng-if="SignForm.username.$error.required && SignForm.username.$touched"
>用户名不能为空</p>
</div>
</form>