Added a "Learn more" link to the language switcher for the demo

This commit is contained in:
Sercan Yemen 2017-10-24 16:02:09 +03:00
parent 9ecd921722
commit f43608f93b

View File

@ -71,12 +71,20 @@
</button>
<mat-menu #languageMenu="matMenu">
<button mat-menu-item *ngFor="let lang of languages" (click)="setLanguage(lang)">
<div fxLayout="row" fxLayoutAlign="start center">
<img class="flag mr-16" [src]="'assets/images/flags/'+lang.flag+'.png'">
<span class="iso">{{lang.title}}</span>
</div>
</button>
<button mat-menu-item [routerLink]="'/components/multi-language'">
<div fxLayout="row" fxLayoutAlign="start center">
<span>Learn more</span>
</div>
</button>
</mat-menu>
<div class="toolbar-separator" fxHide fxShow.gt-xs></div>