I am attempting to build a large form using Angular 2, but I would like to structure it with multiple components. Here is an example of what I have in mind.
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>
After implementing the above code, I noticed that the form appeared correctly in the browser. However, there was an issue with the submit button. It remained enabled even after deleting text from the address component. Strangely, it worked fine when deleting text from the input box in the app component.