【发布时间】:2018-08-07 09:48:21
【问题描述】:
<input class=" form-control" formControlName="employeeId" [attr.disabled]="loginNameDisable ? null : ''"/>
输入正常
<input class=" form-control" formControlName="employeeId" [disabled]="loginNameDisable ? true : false"/>
输入无效
为什么输入不起作用?
[attr.property]和angular模板中的property有什么区别?
【问题讨论】:
标签: angular attr angular-template