title: How to catch selected value from Radio button in AngularJS?
body: <p>Hello every one i'm trying to make a MCQ question from for that I'm trying to catch selected value from Radio button in AngularJS. Main problem i'm facing that i'm binding data from database and those are dynamic. So i have to use ng-repeat from loading those questions in view HTML, so i can't manually handle the  "ng-model" for those options. when click the submit button i need catch the question with the answer  like [{QuestionId:1:AnswerId:4}, {QuestionId:1:AnswerId:3}...] or something like that. Here I've made a JSON data for previewing the scenario. Hope it'll help all to understand my problem and may solve my problem.
  Thanks in advance.</p>
  
  <p>View code in <a href="http://jsfiddle.net/c15mj8pf/5/" rel="nofollow">jsfiddle</a></p>
  
  <p>Here is the HTML</p>
  
  <pre><code>&lt;div ng-app="myapp"&gt;
  &lt;div ng-controller="testController"&gt;
     &lt;form&gt;
      &lt;div ng-repeat="qus in QusWithOptions"&gt;
          &lt;td&gt;{{qus.id}}. {{qus.Question}} &lt;/td&gt;&lt;br /&gt;               
  &lt;input type="radio" name="taskGroup{{qus.id}}" ng-model="asd" value="{{qus.OptionA_KPI}}" /&gt;{{qus.OptionA}}
  &lt;input type="radio" name="taskGroup{{qus.id}}" ng-model="asd" value="{{qus.OptionB_KPI}}" /&gt;{{qus.OptionB}}
  &lt;input type="radio" name="taskGroup{{qus.id}}" ng-model="asd" value="{{qus.OptionC_KPI}}" /&gt;{{qus.OptionC}}
  &lt;input type="radio" name="taskGroup{{qus.id}}" ng-model="asd" value="{{qus.OptionD_KPI}}" /&gt;{{qus.OptionD}}
           &lt;/div&gt;
      &lt;button ng-click="SaveAnswer(asd)"&gt;Submit&lt;/button&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is Js file</p>
  
  <pre><code>    var app = angular.module("myapp",[]);
  
      function testController($scope){
      $scope.QusWithOptions = [
          {id:1, Question: "What is best social network site?", OptionA: "facebook", OptionB: "twitter", OptionC: "google+", OptionD: "others",OptionA_KPI:1,OptionB_KPI:2,OptionC_KPI:3,OptionD_KPI:4  },
          {id:2, Question: "Entomology is the science that studies ?", OptionA: "Behavior of human beings", OptionB: "Insects", OptionC: "Origin of scientific terms", OptionD: "The formation of rocks", OptionA_KPI:1,OptionB_KPI:2,OptionC_KPI:3,OptionD_KPI:4 },
          {id:3, Question: "Eritrea, which became the 182nd member of the UN in 1993, is in the continent of ?", OptionA: "Asia", OptionB: "Europe", OptionC: "Australia", OptionD: "Europe", OptionA_KPI:1,OptionB_KPI:2,OptionC_KPI:3,OptionD_KPI:4},
          {id:4, Question: "For the Olympics and World Tournaments, the dimensions of basketball court are ?", OptionA: "26 m x 14 m", OptionB: "28 m x 15 m", OptionC: "27 m x 16 m", OptionD: "28 m x 16 m",OptionA_KPI:1,OptionB_KPI:2,OptionC_KPI:3,OptionD_KPI:4 },];
  
      $scope.SaveAnswer = function(){
           window.alert();
      };
  }
  </code></pre>