BuildCustomFields(formControl, formControlValue): FormGroup {
return this.fb.group({
formControl: new FormControl(formControlValue),
})
}
I need to add formControl Value from parameter which I pass in BuildCustomFields() method. How can pass the value of formControl dynamically?
It always takes this text "formControl" as key instead of using value which I am passing to it.