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

Resolved - None ngFor ion-option set default value

$
0
0

@RachSama wrote:

hi, just started ionic and was wondering how to set the default value on an ion-option. I’ve searched some questions here at the forum but what i’ve found have been ion-options using ngFors but im using a given set of options

<ion-item>
      <ion-label>Packaging</ion-label>
        <ion-select [(ngModel)]="packaging">
          <ion-option selected value="Plastic">Plastic</ion-option>
          <ion-option value="Box">Boxed</ion-option>
        </ion-select>
    </ion-item>

can anyone help me with this?
using ionic version 3.19.1

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49246

Trending Articles



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