How to change validation of a control after it has been initiated?
问题 I am wondering how can I dynamically change Validation on a field. I have control group, which has 5 fields. For this, I want to use custom validator on this control group, to check if any of the inputs are not empty. If any of those are empty, I want to set validation of all of the fields within this control group to be required. To do this, I need to dynamically change validation of each control to be required, after I verify if any of the inputs are empty. I got the first part - but I