Disable Angular 5 Input fields correct way
You can change the assignment of the variable to a setter method so that you’d have: set isDisabled(value: boolean) { this._isDisabled = value; if(value) { this.form.controls[‘name’].disable(); } else { this.form.controls[‘name’].enable(); } }