Issue
I've got this for loop in my .html file
<div class="dashboard-modules">
<mat-grid-list cols="4" rowHeight="200px">
<mat-grid-tile *ngFor="let item of gridItems; index as i;" [colspan]="item.colSpan" [rowspan]="item.rowSpan">
<a *appShowWithPermission="item.permissions" [routerLink]="item.route" class="tab">
<mat-icon>{{item.icon}}</mat-icon>
{{item.name}}
</a>
</mat-grid-tile>
</mat-grid-list>
'gridItems' always got the same 4 item names. How can I translate them with my ngx-translate?
Solution
by using pipe:
{{item.name | translate }}
Answered By - Никита Середа
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.