I'm trying to add simple form element which must not be controlled by Angular. The goal is to POST file download request, passing authentication token with use of hidden input.
Form code:
<form action="api/admin/codes-csv" method="POST" target="_blank">
<input type="hidden" name="token" value="{{token}}" />
<input class="admin-link" type="submit" value="Download Codes" />
</form>
At server side (aspnet core) I'm returning FileResult with CSV data to download.
This approach worked well with AngularJS but with Angular 5 it does not post to the server (request never happens actually).
If add another <input type="submit" /> right in browser DOM explorer, it works. I've tried to add another submit after page load by the script, but Angular seems to somehow override the behavior and it still doesn't work.
So what I need is seems to stop Angular doing anything with this form and make it act as plain html form.