Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

How to set default value to ion-select?

$
0
0
 <ion-select class="border" interface="popover"  placeholder="Qualify Status"  [(ngModel)]="status_value" #status name="status" (ionChange)="getStatus(status_value)" >
          <ion-select-option *ngFor="let item of responseLeadStatus"  value="{{item.status_id}}" >{{item.status}}</ion-select-option>
        </ion-select>

I want to set default value to ion-select dynamically .i.e From .ts file to HTML
I also got status_id in .ts file.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>