Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
<label>
{{ 'choose-language' | translate }}
<select #langSelect (change)="translate.use(langSelect.value)">
<option *ngFor="let lang of translate.getLangs()" [value]="lang" [selected]="lang === translate.currentLang">{{
lang }}</option>
</select>
</label>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.