Set Dynamically Validator in Angular

dynamicValidation(): void {
  let control = null;
  control = this.myForm.get('controlName');
  control.setValidators([Validators.required]);
  control.updateValueAndValidity(); // this
}