title: Angular checklist-model checkboxes with reverse action
body: <p>I'm working with <a href="http://vitalets.github.io/checklist-model/" rel="nofollow noreferrer">checklist-model.js</a> for angular to select from dynamically generated list of objects. It's working fine, but now I need to make it work in reverse so when I uncheck any of checkbox - place it to new array (and when checked back - remove from array). Can any of You give me some ideas or tell me next steps how to deal with it?</p>
  
  <p>html:</p>
  
  <pre><code>&lt;label&gt;
      &lt;input type="checkbox"
          ng-model="check_all_domains"
          ng-click="toggle_select_all()"/&gt; all
  &lt;/label&gt;
  &lt;label ng-repeat="objects in objects_model"&gt;
      &lt;input type="checkbox"
          checklist-model="objects_selected"
          checklist-value="objects"
          ng-checked="check_all_domains"/&gt;
      {{objects.name}}
  &lt;/label&gt;
  </code></pre>
  
  <p>model:</p>
  
  <pre><code>$scope.objects_model = [
      {id : '1', name: 'name1'},
      {id : '2', name: 'name2'},
      {id : '3', name: 'name3'},
    ];
  $scope.objects_selected = [];
  $scope.check_all_domains = false;
  
  $scope.toggle_select_all = function() {
      $scope.objects_selected = [];
  };
  </code></pre>
  
  <p>here is screenshot how it's <strong>working right now</strong>:</p>
  
  <p><img src="https://i.stack.imgur.com/iakGQ.png" alt="enter image description here"></p>
  
  <p>and here is <strong>how I want it to work:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/UOUNs.png" alt="enter image description here"></p>
  
  <p>UPDATED: WORKING AS IT SHOULD <a href="http://plnkr.co/edit/rLjdtmpizblVnlxKwHPi?p=preview" rel="nofollow noreferrer">DEMO</a></p>