title: how to get ng-repeat checkbox values on submit function in angularjs
body: <p>I have a form which has 10 checkboxes. By default angular js triggers on individual checkbox. I want to grab all selected check box values on submit action only. Here is my code...</p>
  
  <pre><code>&lt;form name="thisform" novalidate data-ng-submit="booking()"&gt;
      &lt;div ng-repeat="item in items" class="standard" flex="50"&gt;
          &lt;label&gt;
              &lt;input type="checkbox"  ng-model="typeValues[item._id]" value="{{item._id}}"/&gt;
              {{ item.Service_Categories}}
          &lt;/label&gt;
      &lt;/div&gt;
      &lt;input type="submit" name="submit" value="submit"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>$scope.check= function() { 
      //console.log("a");
      $http.get('XYZ.com').success(function(data, status,response) { 
      $scope.items=data;
  });
  
  $scope.booking=function(){
      $scope.typeValues = [];
      console.log($scope.typeValues);
  }
  </code></pre>
  
  <p>I am getting empty array.</p>
  
  <p>Can somebody tell how to grab all selected checkbox values only on submit event.</p>