title: Angularjs - disabling AND unchecking a checked box
body: <p>I have a complex set of checkboxes in groups filled with data from multidimensional arrays and there are some specific things that need to happen with them... I extracted the minimum of what I need so I will try to explain</p>
  
  <p>In this fiddle </p>
  
  <p><a href="http://jsfiddle.net/EVZUV/" rel="noreferrer">http://jsfiddle.net/EVZUV/</a></p>
  
  <p>the first checkbox is enabled and the second is disabled. When the first checkbox is checked the second becomes enabled. What I am trying to get is to UNCHECK the second box if it is becomes disabled again when the first checkbox is unchecked.</p>
  
  <p>Here is the code I have that almost works</p>
  
  <pre><code>&lt;input type="checkbox" ng-model="disablelist" ng-click="checkitems"&gt;Check this box to enable the other.. &lt;br&gt;&lt;br&gt;
  &lt;input type="checkbox" ng-disabled="!disablelist" ng-checked="checkitems"&gt;When this checkbox is disabled it also must get unchecked
  </code></pre>
  
  <p>I am just getting intong-js and some ideas are pretty "whaaa .." to me,, but it looks good so I am persisting for now.</p>
  
  <p>Thanks!!</p>