Thanks for the assistance - I will try this out.
I have to revert back to the original way of adding form groups, to make
this work, I think.
How does this work with a form builder, however?
constructor(private fb: FormBuilder) { }
incidentHeader = this.fb.group({
date: [''],
lastUpdated: [''],
id: [''],
reoccurring: [''],
status: [''],
priority: [''],
countriesImpacted: [''],
bridge: [''],
service: [''],
pdl: [''],
optDates: ['']
})
On Friday, August 24, 2018 at 1:07:08 AM UTC-5, Sander Elias wrote:
>
> Hi Daniel,
>
> <form [formGroup]="mainForm">
> <HeaderData [addToGroup]="mainForm"></HeaderData>
> <IncidentData></IncidentData>
> <AnalysisData></AnalysisData></form>
>
> in your data components:
>
> @Input() addToGroup:FormGroup
>
> ngOnOninit() {
> this.addToGroup('someName',formGroupForThisComponent)
> }
>
> Is this enough to get you going?
> Regards
> Sander
>
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.