Skip to content

Glossary: Angular Beyond the Basics

disable / enable (form controls)

Also written: disabled controls

Calling `disable()` on a form control makes it read-only to the user, skips its validators, and excludes its value from the parent group's `value`, though `getRawValue()` still includes it. Calling `enable()` reverses this, making the control editable and validated again.

Where the book teaches it

Related terms

getRawValueFormControl