Angular 6 how to make all input's Not editable element inside a form

后端 未结 7 1419
孤街浪徒
孤街浪徒 2021-02-19 18:15

Is there a way to disable and make all fields non editable (input / mat-select / textfield / option/input/mat-checkbox etc) inside a Form

7条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 19:11

    enter image description here

    Use readonly attribute in the HTML file inside the input tag.

提交回复
热议问题