title: Not able to pass value from model to server
body: <p>Here I am fetching data from server using getprofile and displaying its value in appropriate text box.
  then I am updating value using updatedata
  Problem is that in server cl object{fname,lname,city} is not population with sent value.
  my code is below
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>   var app = angular.module('myApp', []);
              app.controller('myCtrl', function ($scope, $http) {
                  $http.get("getprofile")
                          .then(function (response) {
                              console.log(response.data.clientList);
                              $scope.clientList = response.data.clientList;
                          }, function errorCallback(response) {
                              alert("Unable to fetch ");
                          });
                  $scope.submitForm = function (cl) {
                      console.log(cl);
                      $http({
                          method: 'POST',
                          url: "updateddata",
                          params: {cl: cl}
                      }).then(function successCallback(response) {
                          console.log("updated successfully");
                          $scope.success = "Updated successfully";
                      }, function errorCallback(response) {
                          console.log("not updated");
                          $scope.error = "Unable to update";
  
                      });
                  }
              });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"&gt;&lt;/script&gt;
  &lt;div ng-app="myApp" ng-controller="myCtrl"&gt;
                          &lt;div ng-repeat="cl in clientList"&gt;
                              &lt;div id="error-messages"  ng-show="error"&gt;{{error}}&lt;/div&gt;
                              &lt;div id="success" ng-show="success"&gt;{{success}}&lt;/div&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;div class="col-lg-4 col-md-4"&gt;
                                      &lt;label for=fname"&gt;First Name&lt;/label&gt;
                                  &lt;/div&gt;
                                  &lt;div class="col-lg-8  col-md-8"&gt;
                                      &lt;input type=text"  class="form-control" id="fname" name="fname" placeholder="First Name"
                                             ng-model="cl.fname" data-validation="required" data-validation-error-msg="First Name required"/&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;div class="col-lg-4 col-md-4"&gt;
                                      &lt;label for="lname"&gt;Last Name&lt;/label&gt;
                                  &lt;/div&gt;
                                  &lt;div class="col-lg-8  col-md-8"&gt;
                                      &lt;input type=text"  class="form-control" id="lname" name="lname" placeholder="Last Name"
                                             ng-model="cl.lname" data-validation="required" data-validation-error-msg="Last  Name required"/&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;div class="col-lg-4 col-md-4"&gt;
                                      &lt;label for="city"&gt;City&lt;/label&gt;
                                  &lt;/div&gt;
                                  &lt;div class="col-lg-8  col-md-8"&gt;
                                      &lt;input type=text"  class="form-control" id="lname" name="city" placeholder="City"
                                             ng-model="cl.city" data-validation="required" data-validation-error-msg="Last  Name required"/&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="form-group"&gt;
                                  &lt;div class="col-lg-4 col-md-4"&gt;
                                      &lt;label for="submit" class="sr-only" &gt;Update&lt;/label&gt;
                                  &lt;/div&gt;
                                  &lt;div class="col-lg-8  col-md-8"&gt;
                                      &lt;input type="button"  class="form-control btn btn-success" id="update"
                                             ng-click="submitForm(cl)"
                                             name="Update" value="Update"/&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How to resolve the above problem.</p>