I've created this form here: https://stackblitz.com/edit/angular-ay58g9
I'm getting an error when selecting the option from select menu that I'm not able to solve.
Also, I want the output like this:
When 'form data' selected in dropdown:
[
data_type: 'form_data',
form_data: {
firstname: "saurabh",
lastname: "Sharma"
}
]
When 'form data' selected in dropdown:
[
data_type: 'raw_data',
raw_data: {
email: "[email protected]",
contactno: "9999999999"
}
]
COuld you please look into it and tell me what I'm doing wrong?