title: Set initially selected item in Select list in Angular7
body: <p>Set initially selected item in Select list in Angular7</p>
  
  <p>I am a beginner in the angular framework. I want to set the default of a Dropdown select by value. What should be added in .ts file so that I get expected a result?</p>
  
  <p>.html file :</p>
  
  <pre><code>&lt;select  name="employees"   (change) = "onEdit(emp)" [(ngModel)]="employees" class="form-control"&gt;
    &lt;option *ngFor="let emp of employees"  [value]="emp.id"&gt;
      {{emp.fullName}}
    &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>.ts file:</p>
  
  <pre><code>ngOnInit() {    
  this.service.getEmployeenames().subscribe(actionArray =&gt; {
    this.employees = actionArray.map(item =&gt; {
      return {
        id: item.payload.doc.id,
        ...item.payload.doc.data()
      } as Employee;
     })
    });     
   }
  </code></pre>
  
  <p>Suppose 3 items in dropdown select:</p>
  
  <pre><code>Employee1
  Employee2
  Employee3
  </code></pre>
  
  <p>Default I want to set to <code>Employee1</code>. </p>
  
  <p>Thanks!</p>