Disabled not working

前端 未结 3 1321
臣服心动
臣服心动 2021-02-20 16:00
  1. Not working :
    • [disabled] = true ,
    • [disabled] = \"isDisabled\" -----ts > ( isDisabled=true)
    • basic html disabler al
3条回答
  •  北海茫月
    2021-02-20 16:35

    In the reactive form creation, you can add as below

    this.form= this.formBuilder.group({
          name: [{value: '', **disabled**: **true**}],
        });
    

    the form value will be disbaled

提交回复
热议问题