I am using dynamic form control to create dynamic fields
by using reference of https://www.c-sharpcorner.com/blogs/creating-form-controls-dynamically-in-angular-7-project
I want to validate dynamic fields using setValidators and updateValueAndValidity in Angular 6.
Below is syntax I have used but it's not working.
(<FormArray>this.addQuestionForm.get('other')).setValidators([Validators.required]);
(<FormArray>this.addQuestionForm.get('other')).updateValueAndValidity();
Also let me know how to delete dynamically added field with reference of "<FormArray>this.addQuestionForm.get('other')"
Thanks