title: After Angularjs validation is true do a normal form submit
body: <p>I am implementing AngularJS on an existing web application that requires a common HTTP POST like you would do without AngularJS.</p>
  
  <p>Does any one have a work around to do that?
  i have tried setting action="#" and action="." and just action and then do some jquery to inject a action like this. but nothing works</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $("form").get(0).setAttribute( "action", "test.html" );
  &lt;/script&gt;
  </code></pre>
  
  <p>HERE IS MY FORM AND CODE
      //MY FORM</p>
  
  <pre><code>&lt;form name="userForm" ng-submit="submitForm(userForm.$valid)" xt-form novalidate&gt;
                          &lt;div class="form-group"&gt;
  
                              &lt;div class="col-sm-6" ng-class="{ 'has-error' : userForm.fornavn.$invalid &amp;&amp; !userForm.fornavn.$pristine }"&gt;
                                  &lt;label class="control-label" for="textinput"&gt;Fornavn &lt;span class="star-color"&gt;*&lt;/span&gt;&lt;/label&gt;
                                  &lt;input autocomplete="off" type="text" value="&lt;?php echo set_value('fornavn'); ?&gt;" name="fornavn" ng-model="userFormData.fornavn" class="form-control" xt-validate msg-required="Du skal udfylde dit Fornavn" required&gt;
                              &lt;/div&gt;
  
                              &lt;div class="col-sm-6" ng-class="{ 'has-error' : userForm.efternavn.$invalid &amp;&amp; !userForm.efternavn.$pristine }"&gt;
                                  &lt;label class=" control-label" for="textinput"&gt;Efternavn &lt;span class="star-color"&gt;*&lt;/span&gt;&lt;/label&gt;
                                  &lt;input autocomplete="off" type="text" value="&lt;?php echo set_value('efternavn'); ?&gt;" name="efternavn" ng-model="userFormData.efternavn" class="form-control" xt-validate msg-required="Du skal udfylde dit Efternavn" required&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
  
              &lt;button  id="membership-box__payBtn" type="submit" ng-model="userFormData.betaling" name="betaling" class="btn btn-success text-uppercase"&gt;Gå til betaling&lt;/button&gt;
  
  
  &lt;/form&gt;
  
  
  
  //CODEIGNITER CONTROLLER
  
  if (isset($_POST['betaling'])) {
  
  
  $data['tilBetaling'] = array(
  'oprettelse'        =&gt; $this-&gt;input-&gt;post('oprettelse'),
  //                'medlemskab'        =&gt; $this-&gt;input-&gt;post('medlemskab'),
  'tilBetaling'       =&gt; str_replace(',', '.', $this-&gt;input-&gt;post('tilBetaling')),
  'pr_maaned'         =&gt; $this-&gt;input-&gt;post('pr_maaned'),
  'start_date'        =&gt; $this-&gt;input-&gt;post('start_date'),
  'til_dato'          =&gt; $this-&gt;input-&gt;post('til_dato'),
  'pakke'             =&gt; $this-&gt;input-&gt;post('pakke'),
  'type'              =&gt; $this-&gt;input-&gt;post('medlemskabTypeFinal'),
  'getCenter'         =&gt; $this-&gt;input-&gt;post('getCenter'),
  'medlemskabPakkePID'=&gt; $this-&gt;input-&gt;post('medlemskabPakkePID'),
  'ekstraInput'       =&gt; $this-&gt;input-&gt;post('ekstraInput'),
  'periode_price'     =&gt; $this-&gt;input-&gt;post('periode_price'),
  'kampagneTag'       =&gt; $this-&gt;input-&gt;post('kampagneTag'),
  //                'header'            =&gt; $this-&gt;input-&gt;post('header'),
  );
  
  
  
  //Gem array til session
  $_SESSION['betaling'] = $data['tilBetaling'];
  
  }
  </code></pre>