Disable form all controls based on checkbox in angular reactive form.

How to disable form all controls with single checkbox?

In simple word the goal of this post is to create angular reactive form all controls disabled or enabled based on checkbox. I am saying reactive form because i like to work in angular reactive form. For example i have taken few HTML5 controls for example input type text, calendar, date, dropdown etc. when user click on checkbox depends on checkbox true or false value it disables and enabled the form controls in reactive form.

Demo Github Stackblitz

Leave a Reply

Your email address will not be published. Required fields are marked *