title: Get value from multiple checkboxes in AngularJS
body: <p>Following is my code in which I am trying to get values of multiple checkboxes selected, but some how its not working. Let me know what I am doing wrong here, BTW the list is dynamic and not going to contain only 3 items in an array.</p>
  
  <p>My Plnkr - <a href="http://plnkr.co/edit/fWQsH0Ne6YTtf5w1ThWX?p=preview" rel="nofollow">PLNKR CODE</a></p>
  
  <p>HTML -</p>
  
  <pre><code>    &lt;table&gt;
      &lt;tr ng-repeat="student in studentList"&gt;
     &lt;td ng-bind="$index + 1"&gt;&lt;/td&gt;
     &lt;td ng-bind="student.email"&gt;&lt;/td&gt;
     &lt;td ng-bind="student.fname"&gt;&lt;/td&gt;
     &lt;td ng-bind="student.lname"&gt;&lt;/td&gt;
     &lt;td&gt;
      &lt;input type="checkbox" ng-model="studcheck" ng-value="$index" /&gt;
     &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  {{studcheck}}
  </code></pre>
  
  <p>CONTROLLER CODE -</p>
  
  <pre><code>var myApp = angular.module('myApp', []);
  
  myApp.controller('mainCtrl', function($scope){
    $scope.studentList = [
      {email: 'test1@gmail.com', fname: 'Test1', lname: 'Last1' },
      {email: 'test2@gmail.com', fname: 'Test2', lname: 'Last2' },
      {email: 'test3@gmail.com', fname: 'Test3', lname: 'Last3' },
    ];
  
    $scope.studcheck = {};
  });
  </code></pre>