How to make a formControl in angular readonly
I know i can do it in html like
A simple solution is to set the formcontrol as not disabled:
this._formBuilder.group({
some: new FormControl(
{
value: parseInt(this.myobject.subObject.stringMember),
disabled: false
},
Validators.required
),
and, at the same time, to set the and/or as readonly:
this works with input and textarea at least.