📜  禁用输入角度 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:27.255000             🧑  作者: Mango

代码示例3
set isDisabled(value: boolean) {
 this._isDisabled = value;
 if(value) {
  this.form.controls['name'].disable();
 } else {
    this.form.controls['name'].enable();
  }
}