title: How to get Id of selected value in Mat-Select Option in Angular 5
body: <p>How to get the id of selected option value in mat-select angular 5. Get only value of selected option in onchangeevent. but how can get id of selected option value.</p>
  
  <pre><code> client.component.html
  &lt;mat-form-field&gt;
      &lt;mat-select placeholder="Client*" #clientValue  (change)="changeClient($event)"&gt;
      &lt;mat-option  *ngFor="let client of clientDetails"   [value]="client.clientName"&gt;
        {{client.clientName |  json}}
      &lt;/mat-option&gt;
    &lt;/mat-select&gt;
  &lt;/mat-form-field&gt;
  
  client.component.ts file
  export class Client{
       changeClient(event){
       console.log(event);
   }
  }
  </code></pre>