I need to send form data using a POST request that triggers a download, making it impossible to use any Javascript requests. Therefore, calling a function with the $http service is not an option.
Additionally, I require the corresponding backend route in Node.js to decode a JSON object optimally, without relying on bodyParser.urlencoded() but being able to use bodyParser.json().
Although I have explored the Angular documentation for Forms and Form controller, I haven't found a way to set the enctype to JSON. Is there a solution for this?