I have a form on an Angular2 webpage.
When I click submit on the form, I would like a case of "method =" post ".....> to occur.
That is, the script action for the form is on another website, and I would just like to submit the form to this website. And to be on this external site.
I hit my head against a brick wall; the Submit button seems to have been intercepted by Angular, so just clicking Submit does nothing. I know how to do this when I need to process data asynchronously, but not when I want to just go to this external site.
I don't need any attractive Angular validation, etc., just to submit the form to an external site and then be on that site.
I read and posted to Google, and the only suggestion suggested seems to be doing http.post, then subscribing to the promise and then redirecting. But how does this redirect handle the data I want to submit using the form?
Any pointers are welcome, thanks. Rachel
source
share