Dividing a form into multiple components with validation
问题 I want to create a single big form with angular 2. But I want to create this form with multiple components as the following example shows. App component <form novalidate #form1="ngForm" [formGroup]="myForm"> <div> <address></address> </div> <div> <input type="text" ngModel required/> </div> <input type="submit" [disabled]="!form1.form.valid" > </form> Address component <div> <input type="text" ngModel required/> </div> When I use the code above it was visible in the browser as i needed but