I have been exploring ways to set a target on a form within Angular. My goal is to have the submission of the form occur in a new tab, so I tried using the code below:
<form id="formLanding" role="form" (ngSubmit)="onSubmit()" #landingForm="ngForm" [target]="'_blank'">
...
</form>
Unfortunately, this approach does not post the form to a new tab as expected. I came across information about noNgForm, but it did not work for my specific case. The directive removes the form reference, which conflicts with the extensive work I have already done that integrates with Angular's form validation. Does anyone know of a way to successfully submit a form to a new tab while still utilizing Angular forms?