I have a form with some fields. When user fills all fields and submits the form, I force user to register or login(in modal window) before form submission.
That is, when user try to submit the form, I first open a modal window with login form(user can toggle register/login form). After user complete the login/register form and submit it, I send all data using ajax and after I get a success status, I submit the previous form using jQuery's $("formID").submit() event.
Now as I am migrating from jQuery to angularJS I have tried to find a solution to do that using angularJS, I have completed the user registration/login part using angularJS's $http service, but have failed to submit the previous form data.
Is there any angularJS solution to that kind thing? Is it possible to submit a form with its ID or something like this?