Im new to angular and Im trying to push the certain selected checkbox from table and update into new array
<tr ng-repeat="val in values ">
<td ng-bind="$index"></td>
<td ng-bind="val.rec">ED1500322</td>
<td>working</td>
<td ng-bind="val.result">I am going to School</td>
<td>
<div class="radio">
<input ng-model="val.iscorrect" value="yes" type="radio">
<label for="opt1">yes</label>
<input ng-model="val.iscorrect" value="no" type="radio">
<label for="opt10">no</label>
</div>
</td>
</tr>
As we can observe that are checkbox present, when ever the checkbox is selected, I wanted to push it into new array
I wanted new array to have only selected checkboxes
I know this can be achieved by index by not sure how to do it
Plunker:http://plnkr.co/edit/NGnUwudclnOsnO6Y9Vww?p=preview
Any help in getting only selected checkbox is appreciated