title: Access form element in ng-Submit
body: <p>I am new to angular js and I am struck with accessing the form element in ng-submit function.
  My intention is to set the action attribute dynamically and submit the form rather using jquery selector and setting the action attribute.</p>
  
  <pre><code>&lt;div ng-app="MyApp"&gt;
      &lt;form name="myForm" ng-controller="myController" 
       ng-submit="SubmitFunction(myForm)"&gt;
          &lt;input type="submit" value="Submit" /&gt;            
      &lt;/form&gt;
  &lt;/div&gt;
  
  JS:
      var myApp = angular.module("MyApp",[]);
      myApp.controller("myController", ["$scope", function ($scope) {
          $scope.SubmitFunction = function (formElement) {
              //Set action attribute ???
             //Submit the form ????
          };           
      }]);
  </code></pre>