html.cs
<div [hidden]="StudentName.valid||StudentName.pristine" class="alert alert-danger"> Name is required </div>
错误: “字符串”类型不存在属性“有效”。