title: What is the form action equivalent in Angular 4/6/7?
body: <p>I have a payment gateway that I need to embed in my angular application. I have to add a form tag in my page, where after a valid checkout ID is received (there is some JS code I have to inject which sends a request to the payment server with an amount to be charged, and it will reply with a valid checkout id), a card will be shown.</p>
  
  <p>According to their documentation, I have to then send a form ACTION to the page I wish to navigate to after the user clicks on PAY.</p>
  
  <pre><code>&lt;form action="https://myurl.com/nextpage/" class="paymentWidgets" 
        data-brands="VISA MASTER"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Right now I have hardcoded the action URL in the form. How do I make this dynamic? according to angular documentation, they do not recommend using form action anymore and instead expect us to do that within the code. But since, I don't have any control on this form, I need some way of making the URL dynamic.</p>