My Ionic2 code involves the use of ion-select
. Here is a snippet of my code:
<ion-item>
<ion-label>System Size:</ion-label>
<ion-select [(ngModel)]="quoteDetailsUpdate.system_size" name="system">
<ion-option value="1.5"> 1.5K </ion-option>
<ion-option value="2"> 2K </ion-option>
<ion-option value="3"> 3K </ion-option>
</ion-select>
</ion-item>
If the system size falls between 1.5 and 2, I aim for the selection of the option 1.5K. For instance, if the value is 1.75, it should automatically select the option 1.5K.