angular2 - how to set init value of select box
<p>I can load a select box with no issue track events etc.  What I cant do is to set the initial value.</p>

<pre><code>[ { "id": "1", "name": "USD" }, { "id": "2", "name": "EUR" }]

&lt;select [(ngModel)]="model_initials.currency" (ngModelChange)="onChange($event)" class="custom-select form-control"&gt;
            &lt;option [ngValue]="i" *ngFor="let i of basecurrency" [ngModel]="{selected: model_initials.currency.id == 'i.id'}"&gt;{{i.name}}&lt;/option&gt;
            &lt;/select&gt;
</code></pre>

<p>Assume I want id:2 then how do I set?</p>

<p>I got this error:</p>

<p>platform-browser.umd.js:1900 ORIGINAL EXCEPTION: No value accessor for ''  </p>