title: How to bind dynamic Check boxes value using ng-model?
body: <p>I want to put the values of dynamic checkboxes (not boolean true and false) in the form of array using 'ng-model' in a similar way as is done using 'name' attribute. This array is now put into a JSON object. </p>
  
  <pre><code>&lt;td&gt;
     &lt;span ng-repeat="operation in operations_publish"&gt;
              &lt;input type="checkbox" name="operations" ng-model="operations" value="{{operation}}"/&gt;
              {{operation}}
     &lt;/span&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>Following is my function to post the JSON object:</p>
  
  <pre><code>$scope.send = function() {
      console.log("test");
      var dataObj = {
          "operationType" : $scope.operationType,
          "conceptModelID" : $scope.conceptID,
          "requestor" : $scope.requestor,
          "status" : "new",
          "requestDateTime" : null,
          "lastExecutedDateTime" : null,
          "completedDateTime" : null,
          "instructions" : $scope.operations
  
      };
      console.log(dataObj);
      console.log(dataObj.instructions);
      var response = $http.post('PostService', dataObj);
      response.success(function(data, status, headers, config) {
          $scope.responseData = data;
      });
      response.error(function(data, status, headers, config) {
          alert("Exception details: " + JSON.stringify({
              data : data
          }));
      });
  </code></pre>
  
  <p>But 'dataObj.instructions' is undefined when I run the code. Please suggest whether it is the right way of doing it and what am I missing here.  </p>