title: Angular checkbox: ng-checked and its appropriate use with ng-model
body: <pre><code>&lt;input type="checkbox"
         ng-checked="testModel.child_1 &amp;&amp; testModel.child_2 &amp;&amp; testModel.child_3 &amp;&amp;     testModel.child_4 &amp;&amp; testModel.child_5"
         ng-model="isChecked"/&gt;
  </code></pre>
  
  <p>My goal is to understand the documentation on <code>ng-checked</code> and its appropriate use with <code>ng-model</code> when using a checkbox. I actually thought I had understood it and was attempting to write some examples.</p>
  
  <p>I thought that it could be used to select and deselect all children checkboxes while updating the <code>ng-model</code> for each child. I can use <code>ng-model</code> to store the check value in scope only when a child is selected by the user. When the parent is selected its value is reflected as changed it does not change any of the children. </p>
  
  <p>I have three examples in my fiddle and the first shows the behaviour I expected in the other two examples. IOW, I am surprised that the children checkboxes are not initiated with the testmodel nor are the parent values ever registered with the testmodel. Is this the expected out of the box behaviour or is there something wrong with my debugging?   </p>
  
  <p><a href="http://jsfiddle.net/gogirl/7857c/2/" rel="nofollow noreferrer">http://jsfiddle.net/gogirl/7857c/2/</a></p>