Skip to content

Commit

Permalink
use the ion-select label attribute for the language element
Browse files Browse the repository at this point in the history
  • Loading branch information
hall committed Mar 31, 2023
1 parent 6e04b9c commit 126fa3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,17 @@
</ion-item>

<ion-item>
<ion-select interface="popover" [(ngModel)]="settings.language" (ionChange)="settings.useLanguage($event)">
<ion-select
label="Language"
interface="popover"
[(ngModel)]="settings.language"
(ionChange)="settings.useLanguage($event)"
>
<ion-select-option value="gb">🇬🇧 gb</ion-select-option>
<ion-select-option value="fr">🇫🇷 fr</ion-select-option>
<ion-select-option value="de">🇩🇪 de</ion-select-option>
<ion-select-option value="it">🇮🇹 it</ion-select-option>
<ion-select-option value="es">🇪🇸 es</ion-select-option>
Language
</ion-select>
</ion-item>

Expand Down

0 comments on commit 126fa3f

Please sign in to comment.