I have the following control on my Angular reactive form:
name: this.name = this.fb.control({ value: '', disabled: this.isNameDisabled }, this.nameValidations )
isNameDisabled is a getter as following:
private get isNameDisabled(): boolean {
return this.isDisabled;
}
The first load works correctly, but when updating this.isDisabled to True, disabled property is not updated to true, and the input is still enabled.
Is there any way to dynamically disable the input without using this.name.disable()?