When submitting a form using ng-submit in my Angular application, I receive an array of fields that I need to post to a RESTful web service. However, I'm unsure how to map and convert this data into the desired final object template within my Angular Typescript controller.
Do you have an example or tutorial on how to achieve this? I've searched but couldn't find anything helpful. It seems like I need to declare and create an object with the structure of the JSON I want, but I'm unsure how to properly map all the fields.
What is the most efficient way to send an Angular form with specific fields to another JSON template?
Thank you for any assistance.