formbuilder addcontrol 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));