angular dynamically add control to formgroup code example
Example: formgroup addcontrol
let form: FormGroup = new FormGroup({});
form.addControl(field_name, new FormControl('', Validators.required));
let form: FormGroup = new FormGroup({});
form.addControl(field_name, new FormControl('', Validators.required));