Add dynamic validation in an angular reactive form

https://netbasal.com/three-ways-to-dynamically-alter-your-form-validation-in-angular-e5fd15f1e946

access to the form control and add or remove the validator with setValidator