Check out the form I created: https://stackblitz.com/edit/angular-ay58g9
I'm encountering an issue when selecting an option from the dropdown menu and I can't seem to figure it out.
Furthermore, I need the output structure to be as follows:
When 'form data' is selected in the dropdown:
[
data_type: 'form_data',
form_data: {
firstname: "saurabh",
lastname: "Sharma"
}
]
When 'raw data' is selected in the dropdown:
[
data_type: 'raw_data',
raw_data: {
email: "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bdcedcc8cfdcdfd5fddad0dcd4d193ded2d0">[email protected]</a>",
contactno: "9999999999"
}
]
Could you please take a look at it and let me know what mistake I might be making?