I am facing an issue with separating the form components. I want to house all the logic and functionalities in the main parent component and display them on child components. For example, the submit function should reside in the parent component.
Check out this stackblitz for reference.
<form [formGroup]="personalInfoForm" (ngSubmit)="onRegister(personalInfoForm)">
<app-personal-info [personalInfoForm]="personalInfoForm" [submitted]="submitted"></app-personal-info>
</form>