The problem is that you add the group address to the formbuilder groups in the parent component but the html is added as a child component which cannot update your formgroup values.
Using the parent-child approach, you need to output the change of the value from the child component to the parent component when the value change and then set the value of your form group manually, take a look here for some different ways of communicating between parent-child components: https://angular.io/docs/ts/latest/cookbook/component-communication.html
To me, it looks easier if you could use ngFor or ngIf directives to control your dynamic form instead of adding child components. Take a look here for an example of how to do this: https://angular.io/docs/ts/latest/cookbook/dynamic-form.html
@hanger thanks for the reply, but my situation is that I dont have the luxury of working here with dynamic forms. The html comes from the table which need to be manipulated to add inputs to be presented to the user to fill it in. I do understand i added the form group in the top, I am not sure how to handle it after the dynamic HTML is displayed. I have worked on dynamic forms, but dynamic forms is not going to work since the content of Forms Inputs are part of html from database and need to display it dynamically.
If you get html from your database you can bind the innerHtml property of a div to your html string to have the html displayed. But if this solution does not work then you need to use one of the ways to communicate between parent and child that is outlined in the angular cookbook in the original answer.
I tried using inner html to bind and it works fine and it shows the html and the input values, but the problem is I am not able to get the values back to parent. That is where i need help.
Ok, would you mind updating your post to show how you did when binding to inner html. To be clear - I talk about updating your template with a div like this: <div [innerHtml]="htmlString"></div>. There is no parent-child relationship with this approach because the html string and the values will all be on the parent.
Here you go. This is using div InnerHTML. I am using safeHTML so the values Input fields are not stripeed plnkr.co/edit/Pgd81dg5tBuraSXkDBe6?p=preview When you add some values and submit, you will not get the values for address. This is the problem I am having