title: Default option value for a select in angular 12 using ngModel
body: <p>I have a select with an hardcoded option with ngValue of null and other options being filled with an ngFor.
  I'd like for the first null option to be selected by default.
  No matter what I do I always have an empty option selected by default.</p>
  <p>I get my model name and data from a parent component that gets its data from the api.</p>
  <p>The select component .html:</p>
  <pre><code>&lt;select name=&quot;typeSelect&quot; [(ngModel)]=&quot;model&quot; (ngModelChange)=&quot;onSelectChange($event)&quot; class=&quot;form-select&quot;
  aria-label=&quot;Type select&quot;&gt;
      &lt;option [ngValue]=&quot;null&quot;&gt;Select a type&lt;/option&gt;
      &lt;option *ngFor=&quot;let type of object.types&quot; [ngValue]=&quot;type&quot;&gt;{{ type.name }}&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  <p>Its .ts:</p>
  <pre><code>  @Input() object: ObjectData;
    @Output() outputChosenType: EventEmitter&lt;any&gt; = new EventEmitter&lt;any&gt;();
    @Input() model: string = '';
  
      onSelectChange(chosenType: any) {
          if(chosenType !== null ){...}
      }
  </code></pre>
  <p>I spare you the other checks and logic in my ts because those are working fine, the only thing not working is having the first option slected.</p>
  <p>The model comes from another ngFor with this component.</p>
  <p>parent.html:</p>
  <pre><code>&lt;app-typeSelect-card *ngFor=&quot;let object of allObjects.data ; let i = index&quot; [object]=&quot;singleObject&quot;
              [model]=&quot;i.toString()&quot; (outputChosenType)=&quot;onOutput($event)&quot;&gt;&lt;/app-typeSelect-card&gt;
  </code></pre>