I have an Angular 9 service which is running fine. However, upon attempting to push my data into a form, i created a new form by adding the following into the service:
import { FormGroup, FormBuilder } from '@angular/forms';
constructor(public formBuilder: FormBuilder) { }
newForm = new FormGroup({});
this.newForm = formBuilder.group({
value_one: [''],
value_two: [''],
});
Any time public formBuilder: FormBuilder
is added to any of my services, I receive the error:
"Cannot instantiate cyclic dependency!"
If however, I decided to add those to the component.ts instead of the service, it's fine.
I've had this set up working fine in my Angular 8 project, so I'm wondering if anything has changed for A9 that I haven't noticed?
Thanks for any assistance!