My webapp must redirect the user to another website on which I have no control. This website expect to receive a few POST parameters from the user.
Without angular, I would have to redirect the user using a form like this :
<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 would also work, but I want the action url and the value of "number" to come from angular's scope.
Sadly, it doesn't seems to work when I use ng-model or {{var}} in the value/action attributes.
Any idea to redirect the user to the other website with POSTed parameters from the scope?