I am trying to get the values of dynamically added component on click of save button.
Here is get-dynamic-added-component-values
ts:
postData: any[]=[];
finalObject;
saveData(form : NgForm) {
this.postData = form.value;
let jsonData = this.postData; <-- I am not getting all values
}
Here I will get values which is default added, when I click on Append to tab
button, new component will be added and on click of save
button all values will be printed in ts file (saveData()
) function.