title: How to get row data from table using angularjs
body: <p>I am new to angularjs. I am facing an issue. I have a table with one radio button. When the user selects any radio button and click on the submit button, I need to show the selected  rows details.</p>
  
  <p>Html code:</p>
  
  <pre><code>&lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Select&lt;/th&gt; 
              &lt;th&gt;First Name&lt;/th&gt; 
              &lt;th&gt;Last Name&lt;/th&gt; 
              &lt;th&gt;Unique Reference ID&lt;/th&gt; 
              &lt;th&gt;Country&lt;/th&gt; 
              &lt;th&gt;Branch&lt;/th&gt; 
              &lt;th&gt;Card No&lt;/th&gt; 
         &lt;/tr&gt;
      &lt;/thead&gt;
  
      &lt;tr ng-repeat="d in Employees"&gt;
          &lt;td&gt;&lt;input type="radio"&gt;&lt;/td&gt;
          &lt;td&gt;{{d.fname}}&lt;/td&gt;
          &lt;td&gt;{{d.lname}}&lt;/td&gt;
          &lt;td&gt;{{d.uniqueid}}&lt;/td&gt;
          &lt;td&gt;{{d.country.name}}&lt;/td&gt;
          &lt;td&gt; {{d.branch.name}}&lt;/td&gt;
          &lt;td&gt;{{d.cardno}}&lt;/td&gt; 
      &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;input type="button" value="Edit" ng-click="Edit()"&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>controller code:</p>
  
  <pre><code>$scope.Edit=function()
  {
      //need id of selected row ?
  };
  </code></pre>