AngularJS Tutorial - Direct server submission








The following code shows how to do direct server submission.

Example


<!doctype html>
<html ng-app="myApp" >
<head>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.2/angular.js"></script>
</head><!--from  ww w. j a v  a  2 s .c om-->
<body>
  <form method="get" action="http://www.example.com/search">
    <input name="q"> Press enter in the input to submit
  </form>
</body>
</html>

The code above is rendered as follows: