title: Angular 7 select selected attribute option based on passed data
body: <p>I am expiriencing a problem while i am trying to make a select dropdown in angular. 
  I want to make one option selected based on the data passed with ngFor. Since I have experienced that I can not use an ngIf and an ngFor at the same time. Even though I do not understand why this is not possible I want to ask the question: "How do I make this work?" The data behind the code is working well. This has been tested. neither can i casually use JQuery to fix it with a <code>$(document).ready();</code></p>
  
  <pre><code>&lt;select *ngIf="result.Waarde.length &gt;= 2; else other_content" (change)="onChangeSelected($event.target.value, result)" #select class="form-control"&gt;
      &lt;option *ngFor="let waarde of result.Waarde" *ngIf="result.WaardeStr == waarde.value;" selected&gt;
          {{waarde.value}}
      &lt;/option&gt;
      &lt;option *ngFor="let waarde of result.Waarde" *ngIf="result.WaardeStr != waarde.value;"&gt;
         {{waarde.value}}
      &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>