I understand Angular forms using formGroup and formControls - but cannot 
figure out how to get everything all together.

I have multiple components making up one giant form - each component is a 
section of the form.
So the main component <incident-form></incident-form> will show up on the 
app component's html.

The problem is - the incident-form component's html contains multiple 
components...



etc...

Each of these components has controls on it - that I can create a form 
group with - however I only want one form submit button.  Preferrably like 
this:

<form [formGroup]="mainForm">
<HeaderData></HeaderData>
<IncidentData></IncidentData>
<AnalysisData></AnalysisData>
</form>

But this doesn't work - as I apparently need to put the formGroup on each 
individual component.

how do I get this as one main form without putting all the html input 
controls on one big component?

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to