Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<select formControlName="languages" (change)="changeLanguage($">
<option *ngFor="let lang of languages" [value]="lang" [selected]="language === lang">
<a *ngIf="language !== lang" href="javascript:void(0)" class="link lang-item {{lang}}">{{ '_languages.' + lang | i18nextCap }}</a>
<span *ngIf="language === lang" class="current lang-item {{lang}}">{{ '_languages.' + lang | i18nextCap }}</span>
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.