title: Angular get the data of the selected row in the table
body: <p>Angular4 is also given * ngFor tabloda is listed. I want to get 'ID' information from incoming data. How can I do that?</p>
  
  <pre><code>&lt;tbody&gt;
      &lt;tr *ngFor="let item of empleyoo"&gt;
          &lt;th scope="row" &gt;{{item.Id}}&lt;/th&gt; /*this row data get*/
          &lt;td&gt;{{item.name}}&lt;/td&gt;
          &lt;td&gt;{{item.surname}}&lt;/td&gt;
          &lt;td&gt;{{item.code}}&lt;/td&gt;
         &lt;button type="button" class="glyphicon glyphicon-check"&gt;&lt;/button&gt;
      &lt;/tr&gt;       
  &lt;tbody&gt;
  </code></pre>
  
  <p><strong>Typescript</strong></p>
  
  <pre><code>public GetId()
  {
      var id=
  }
  </code></pre>