title: AngularJs: uncheck checkbox after item is removed
body: <p>after spending a lot of time on this simple issue and having made a lot of research, I was wondering if someone could give me some help.</p>
  
  <p>I have data which is generated inside of a table like so:</p>
  
  <pre><code>&lt;tbody&gt;
       &lt;tr class="odd gradeX" ng-repeat="user in ctrl.datas | orderBy:ctrl.sortType:ctrl.sortTypeReverse"&gt;
       &lt;td&gt;
          &lt;input type="checkbox" class="checkboxes" value="{{user.id}}" ng-click="ctrl.addItem(user)"/&gt;
       &lt;/td&gt;
       &lt;td&gt;
         {{user.given_name}}
       &lt;/td&gt;
  
       &lt;td&gt;
           {{user.family_name}}
       &lt;/td&gt;
       &lt;td&gt;
         &lt;a href="mailto:{{user.emai}}"&gt; {{user.email}}&lt;/a&gt;
       &lt;/td&gt;
       &lt;td class="center" ng-bind-html="ctrl.convertToDate(user.created_at) | date: 'dd-MMMM-yyyy hh:mm'"&gt;&lt;/td&gt;
       &lt;td&gt;
         &lt;span class="btn blue-hoki"&gt; Details &lt;/span&gt;
       &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/tbody&gt;
  </code></pre>
  
  <p>Above is a container where I get the items selected via a checkbox, add the in an array and give the user the ability to delete the selected item:</p>
  
  <pre><code>&lt;tr ng-repeat="user in ctrl.checkedObject track by $index" ng-show="user.id"&gt;
     &lt;td&gt;{{user.family_name}}&lt;/td&gt;
     &lt;td&gt;{{user.given_name}}&lt;/td&gt;
     &lt;td&gt;
        &lt;button class="btn blue" ng-click="ctrl.removeItem($index)"&gt;Unselect&lt;/button&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>In my controller, here are the two functions used to do so:</p>
  
  <pre><code>this.checkedObject = [];
  
  //Add selected user
  
  this.addItem = function (user) {
     self.checkedObject.push(user);
  };
  this.removeItem = function(obj){
     delete self.checkedObject[obj];
  };
  </code></pre>
  
  <p>What i'd like to achieve is to <strong>uncheck the corresponding checkbox</strong> if a user changes his selection. 
  The thing is, I have no idea how to <em>target</em> the corresponding checkbox. Does anyone have a clue?
  Thanks in advance</p>