Instead of using form.submit()
, I want to use $http.post()
to send the form parameters and data to my backend, then send back any data from there in a .then()
function. In this case, the parameters include reg.email
's value.
How do I do this with the way my form is set up? I'd prefer using ng-submit
, but if that's not possible, is there another way?
StackOverflow question if you want SO points: https://stackoverflow.com/questions/49062620/how-do-i-send-a-post-request-with-all-parameters-from-a-form-using-an-angularjs?noredirect=1#comment85130941_49062620