Open
Description
Feature Description
Right now input components (checkbox, chips, datepicker, form field, radio button, select, slider) have [disabled]
property. Only matInput
directive has [readonly]
.
[disabled]
property conflicts with the [formControl]
directive, which has a property with the same name.
So if you use [formControl]
with the components listed above, it is not possible to use their [disabled]
property.
Use Case
[disabled]
controls will not be included in form.value
- sometimes you need to render an input element as read-only but still send its value to the server.