title: How to set auto focus in mat-select?
body: <p>In my angular project have angular material and use mat-select. Mat-select is the first element for my form in my case set auto focus while page was loaded successfully but I wasn't able to set auto focus on mat-select. Anyone can help me to find the way to set auto focus in mat-select.</p>
  
  <pre><code>@ViewChild("name") nameField: ElementRef;
  
  ngOninit() {
    this.nameField.nativeElement.focus();
  } 
  </code></pre>
  
  <p>html</p>
  
  <pre><code>&lt;div&gt;
   &lt;mat-select [(ngModel)]="nameField" #name&gt;
      &lt;mat-option *ngFor="let option of options2" [value]="option.id"&gt;
        {{ option.name }}
      &lt;/mat-option&gt;
   &lt;/mat-select&gt;
  &lt;/div&gt;
  </code></pre>