属性“有效”在类型“字符串”上不存在

问题描述 投票:0回答:0

html.cs

学生姓名
    <div [hidden]="StudentName.valid||StudentName.pristine" class="alert alert-danger">
        Name is required
    </div>

错误: “字符串”类型不存在属性“有效”。

angular
© www.soinside.com 2019 - 2024. All rights reserved.