Disable Input fields in reactive form

后端 未结 16 1048
暖寄归人
暖寄归人 2020-12-22 20:28

I already tried to follow the example of other answers from here and I did not succeed!

I created a reactive form (ie, dynamic) and I want to disable some fields at

16条回答
  •  庸人自扰
    2020-12-22 21:11

    The disabling FormControl prevents it to be present in a form while saving. You can just set it the readonly property.

    And you can achieve it this way :

    HTML :

    
                            
        
    提交评论

提交回复
热议问题