In this section we take a look at how AngularJS handles submission of forms. Single Page AJAX Applications, for which AngularJS is perfect, don't tend to follow the same process of direct submission to the server as traditional web application do. But sometimes your application must support this. Here we show the various submission scenarios that you may wish to implement when submitting form data back to a server.
If you include an
action attribute on a form in an AngularJS application, then the form will submit as normal to the URL defined in the action:
<form method="get" action="http://www.google.com/search"> <input name="q"> </form>
Try it at http://bit.ly/115cQgq ...