How to add values in dropdown in ionic 2 dynamically
<p>I want a dropdown in my form. I know how to add options in dropdown statically, but, I want it to be dynamic. </p>

<p>My code</p>

<pre><code>&lt;ion-item&gt;
    &lt;ion-label&gt;Select Type&lt;/ion-label&gt;
    &lt;ion-select [(ngModel)]="selectedvalue" #item&gt;
        &lt;ion-option *ngFor="let item of items" [value]="item"&gt;{{item}}&lt;/ion-option&gt;
    &lt;/ion-select&gt;
&lt;/ion-item&gt;
</code></pre>

<p>I have written the html code for this. But I don't know what to do in my .ts file. How to assign values to items?</p>