title: How to pass ng-models to a form
body: <p>i have a form with two differently named ng-models. I need to pass both of them with the form. How would this work? I need to pass <code>currentItem + currentItem.Customer</code> I am having trouble with a PdfSharp controller and I want to see if this is the reason why the Customer Values are being passed back as Null. </p>
  
  <p>controller</p>
  
  <pre><code>  $scope.EmailPdf = function () {
  
     var id = $scope.currentItem.JobId
      $http.get('/api/Pdf/' + id).success(function () {
          $scope.PrintPreviewModal();
      });
  }
  </code></pre>
  
  <p>form</p>
  
  <pre><code>    &lt;form ng-submit="submitJob()" enctype="multipart/form-data" name="myForm"&gt;
    &lt;fieldset&gt;
     &lt;div class="col-xs-12"&gt;
     &lt;label&gt;Number:&lt;/label&gt;
      &lt;input ng-model="currentItem.JobNumber" type="text" name="JobNumber"&gt;
      &lt;label&gt;Customer:&lt;/label&gt;
      &lt;input  type="text" ng-model="currentItem.Customer.CustomerName"
        typeahead="customer.CustomerName for customer in customerArray | filter:$viewValue"
         typeahead-on-select="selectEditCustomer($item)"&gt;
         &lt;/div&gt;
         &lt;input ng-model="currentItem.CustomerId" type="text" ng-hide="true"/&gt;
         &lt;div class="inline-fields"&gt;
         &lt;label &gt;Status:&lt;/label&gt;
         &lt;selectng-model="currentItem.JobStatus"&gt;
          &lt;option value="" selected="selected"&gt;Select&lt;/option&gt;
          &lt;option value="Active"&gt;Active&lt;/option&gt;
          &lt;option value="InActive"&gt;InActive&lt;/option&gt;
          &lt;option value="Complete"&gt;Complete&lt;/option&gt;
          &lt;/select&gt;
         &lt;label&gt;Address:&lt;/label&gt;
         &lt;input  ng-model="currentItem.Customer.CustomerAddress" type="text"&gt;
         &lt;/div&gt;
         &lt;div class="inline-fields"&gt;
         &lt;label&gt;Name:&lt;/label&gt;
         &lt;input ng-model="currentItem.JobName" type="text"&gt;
          &lt;label&gt;City:&lt;/label&gt;
          &lt;input ng-model="currentItem.Customer.CustomerCity" type="text"&gt;
         &lt;label&gt;St:&lt;/label&gt;
           &lt;inputng-model="currentItem.Customer.CustomerState" type="text"&gt;
  
            &lt;label&gt;Zip:&lt;/label&gt;
           &lt;input ng-model="currentItem.Customer.CustomerZipcode" type="text"&gt;
           &lt;/div&gt;
            &lt;div class="inline-fields"&gt;
             &lt;label&gt;Address:&lt;/label&gt;
             &lt;input ng-model="currentItem.JobAddress" type="text"&gt;
             &lt;label&gt;Ph:&lt;/label&gt;
             &lt;input ng-model="currentItem.Customer.CustomerPhoneNumber" type="text"&gt;
  
              &lt;label&gt;Fax:&lt;/label&gt;
             &lt;input disabled style="width: 105px"ng-model="currentItem.Customer.CustomerFaxNumber" type="text"&gt;
              &lt;/div&gt;
  
  
           &lt;input ng-click="EmailPdf(currentItem)" type="button" value="Email"  /&gt;
  </code></pre>