title: How to get the values of multiple checkboxes in AngularJS?
body: <p>In my app I got 7 checkboxes. I want to get the value of the selected checkbox and store into an object. Ff it is deselected I want to remove it in the object.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;span ng-repeat="days in selectDays"&gt;
      &lt;input type="checkbox" id="{{days}}" ng-model="daysSelected"/&gt;
      &lt;label for="{{days}}"&gt;{{days}}&lt;/label&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>$scope.selectDays = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
  $scope.selectedList = {}; //this is the object to store the selected checkbox values
  </code></pre>