Hi Daniel,
It works in the same fashion with formBuilder as with Formgroup. the method
names differ a bit.
I took a shortcut in typing my sample. I think my brain was running faster
as my fingers ;)
<form [formGroup]="mainForm">
<HeaderData [parentForm]="mainForm"></HeaderData>
<IncidentData></IncidentData>
<AnalysisData></AnalysisData></form>
in your data components:
@Input() parentForm:FormGroup
ngOnOninit() {
this.parentForm.addControl('someName',formGroupForThisComponent)
}
Hope this helps,
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.