title: how to submit form data without using ngClick and ngSubmit
body: <p>Is there any method or tag/directive in angular js to send the data without using  ngClick and ngSubmit.</p>
  
  <p>because in the both methods we have to explicitly mention function name. I want to avoid this due to security purpose?</p>
  
  <p>This my code:</p>
  
  <pre><code> &lt;form name="userForm"  novalidate&gt;
                      &lt;div class="col-md-2"&gt;&lt;/div&gt;
                      &lt;div class="col-md-8"&gt;
                          &lt;h2 class="title-text"&gt;Get Quote&lt;/h2&gt;
  
                          &lt;div class="row"&gt;&amp;nbsp;&lt;/div&gt;
  
                          &lt;div class="form-group" ng-class="{ 'has-error' : userForm.name.$invalid &amp;&amp; !userForm.name.$pristine }"&gt;
                              &lt;label&gt;Name:&lt;/label&gt;
                              &lt;input type="text" name="name" class="form-control" ng-model="formData.name" required&gt;
                              &lt;p ng-show="userForm.name.$invalid &amp;&amp; !userForm.name.$pristine" class="help-block"&gt;name is required.&lt;/p&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group" ng-class="{ 'has-error' : userForm.email.$invalid &amp;&amp; !userForm.email.$pristine }"&gt;
                              &lt;label&gt;Email&lt;/label&gt;
                              &lt;input type="email" name="email" class="form-control" ng-model="formData.email"&gt;
                              &lt;p ng-show="userForm.email.$invalid &amp;&amp; !userForm.email.$pristine" class="help-block"&gt;Enter a valid email.&lt;/p&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group" ng-class="{ 'has-error' : userForm.subject.$invalid &amp;&amp; !userForm.subject.$pristine }"&gt;
                              &lt;label&gt;subject:&lt;/label&gt;
                              &lt;input type="text" name="subject" class="form-control" ng-model="formData.subject" ng-minlength="3" ng-maxlength="15"&gt;
                              &lt;p ng-show="userForm.subject.$error.minlength" class="help-block"&gt;subject is too short.&lt;/p&gt;
                              &lt;p ng-show="userForm.subject.$error.maxlength" class="help-block"&gt;subject is too long.&lt;/p&gt;
                          &lt;/div&gt;
  
                          &lt;div class="form-group" ng-class="{ 'has-error' : userForm.description.$invalid &amp;&amp; !userForm.description.$pristine }"&gt;
                              &lt;label&gt;Description:&lt;/label&gt;
                              &lt;input type="text" name="description" class="form-control" ng-model="formData.description" ng-minlength="3" ng-maxlength="200"&gt;
                              &lt;p ng-show="userForm.description.$error.minlength" class="help-block"&gt;description is too short.&lt;/p&gt;
                              &lt;p ng-show="userForm.description.$error.maxlength" class="help-block"&gt;description is too long.&lt;/p&gt;
                          &lt;/div&gt;
  
                          &lt;button class="btn btn-primary btn-lg" id="btn-get-requirement" ng-disabled="userForm.$invalid"&gt;Get Quote&lt;/button&gt;
                      &lt;/div&gt;
                      &lt;div class="col-md-2"&gt;&lt;/div&gt;
                  &lt;/form&gt;
  </code></pre>
  
  <p>can i use id attribute to submit  form data in angularjs?? Or is there any method??</p>