Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created September 14, 2018 12:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lydemann/20ba5b77044c2d097603f26a659e2144 to your computer and use it in GitHub Desktop.
...
<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