I am in a process of designing a form which has some repeated complex logic. I am using reactive forms approach for the same. Since the logic is repeatative, i thought of creating a component for the same. below is the call from parent form.
<ms-diag [parentForm] = "SOForm"></ms-diag>
I am passing the parent form as an input to the child component. But I am receiving undefined
as output in child component
@Input() parentForm : FormGroup;
constructor() {
this.text = 'Hello World';
console.log('New Value >>>>>>>>>>>>>>>>>>>>');
console.log(this.parentForm);
}
am i missing something here?