title: Call function only when check box is checked
body: <p>I am new to angular.js and I was trying to create an html list with checkboxes, so what I was trying to achieve was to call a javascript function, when a user checks a checkbox.</p>
  
  <pre><code>&lt;input id='box' ng-model='" + key + "'  ng-change='graphquery(\"" + key + "\")' class = 'queryNameList css-checkbox' type = 'checkbox' /&gt;
  </code></pre>
  
  <p>So here, I have used <code>ng-change</code> which basically captures all changes, it calls function <code>graphquery</code> on both cases ( checking and unchecking)</p>
  
  <p>Is it possible to specify, condition, like it should only call this function if the checkbox is checked.</p>