My webapp should redirect the user to another website on which I do not control. This site expects to receive several POST parameters from the user.
Without angular, I would have to redirect the user using the following form:
<FORM METHOD="POST" ACTION="https://otherwebsite.com/index.php">
<INPUT TYPE="HIDDEN" NAME="id" VALUE="A1S2D3">
<INPUT TYPE="hidden" NAME="number" VALUE="1234567">
<INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Submit">
</FORM>
In angular, this will also work, but I want the action url and the number value to come from the angular scope.
Unfortunately, this does not work when I use ng-model or {{var}} in the value / action attributes.
Any idea to redirect the user to another site with POSTed options from the area?
Galdo source
share