title: How to pass Id to my API request from a selected dropdown in Angular 6?
body: <p>I am using Angular 6 here i am having one dropdown which is coming from API response.</p>
  <pre><code>&lt;select 
    class=&quot;form-control&quot; 
    name=&quot;empName&quot; 
    [(ngModel)]=&quot;allData.secondEmp&quot; 
    (change)=&quot;typeChange()&quot; 
    (blur)=&quot;getid($event)&quot; 
    required
  &gt;                           
    &lt;option 
      *ngFor=&quot;let employee of Employees&quot; 
      value=&quot;{{employee.secondEmp}}&quot;&gt;{{employee.firstName}}&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  <p>Here i am having array like</p>
  <pre><code>employees = [{id: 1, firstEMp: 'kaushik', secondEmp: 'krishna'}....]
  </code></pre>
  <p>Here i want to get id in my request when i change the dropdown function.</p>
  <p>I know we need to change the <code>value=&quot;{{employee.id}}&quot;</code> but i am having some other <code>*ngIf</code> conditions here so i cant change <code>value</code> here. Any other solution for this? TIA</p>