I have a page with many inputs, and I want to make it 'readOnly
'
I find this solution: How to change HTML element readonly and required attribute in Angular2 Typescript?
But I don't want to do it for every input separately.
How can I add readOnly
property to all inputs in some div.
Try this in input field:
[readonly]="true"
Hope, this will work.