title: triggering all the checkbox event while selecting checkall in angularjs
body: <pre><code>&lt;table class="table"&gt;
  &lt;thead&gt;
              &lt;th&gt; &lt;input type='checkbox' name='selectall' ng-model="value1" ng-click="selectAll()"&gt;&lt;/th&gt;
              &lt;th&gt;  Name &lt;/th&gt;
          &lt;/thead&gt;
          &lt;tr ng-repeat="x in items"&gt;
              &lt;td&gt;&lt;input type='checkbox' ng-model="value2" ng-true-value="YES" ng-false-value="NO" ng-click="select($event,x.id)"
                              /&gt;&lt;/td&gt;
              &lt;td&gt;{{x.name}}&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  </code></pre>
  
  <p>How to I get all the item.id when I click "selectall()" checkbox ?</p>
  
  <p>Also, Can you suggest me appropriate ng-model syntax for ng-repeat checkbox ?</p>
  
  <p>Thanks,
  Raja K </p>