0

I am trying to modify a project code, the project is written in ionic but I am not ionic developer

I did some search and change the UI from input field to select, but the value is not shown in the select

the old code

<ion-input name="url" placeholder="{{ 'core.login.siteaddressplaceholder' | translate }}" formControlName="siteUrl"[core-auto-focus]="showKeyboard && !showScanQR" (ionChange)="searchSite($event, siteForm.value.siteUrl)">
</ion-input>

my new code is

<ion-select name="url" placeholder="{{ 'core.login.siteaddressplaceholder' | translate }}" formControlName="siteUrl"[core-auto-focus]="showKeyboard && !showScanQR" (ionChange)="searchSite($event, siteForm.value.siteUrl)">
    <ion-select-option value="HTTP://www.google.com">Google</ion-select-option>
    <ion-select-option value="HTTP://www.facebook.com">Facebook</ion-select-option>    
</ion-select>
Amira Elsayed Ismail
  • 9,216
  • 30
  • 92
  • 175
  • Besides the typos in the code .... what does `value is not shown in the select` mean? Do you get any errors in the console.log? –  Dec 15 '22 at 02:17

0 Answers0