How to make an angular form read only and make it editable with edit button?

后端 未结 3 2460
面向向阳花
面向向阳花 2021-02-19 22:22

Is there a way to make the entire Angular form read only and then editable when clicking edit?

3条回答
  •  温柔的废话
    2021-02-19 22:59

    You can individually disable all the form elements as suggested in the current answer/comments, or you can wrap all of your form elements in a

    (more info) tag and then enable/disable everything in one step:

提交回复
热议问题