angularngforng2-translate

How to use Ng2-translate into *NgFor


i need to translate the Data that i get in NgFor but i couldn't find any solution for it.

can any 1 find solution for this

<dl class="row">
    <dd class="col-sm-3" (click)="onSelect(brand)" *ngFor="let brand of searchData">
        <div style="text-align:center">{{brand.name}}</div>
        <br> 
    </dd>
</dl>

how can i use | translate @pipe inside this NgFor


Solution

  • GOT THE SOLUTION THIS IS WORKING FINE

        <dl> <dd> 
        <div class="col-md-3" (click)="onSelect(brand)" *ngFor="let brand of searchData">
     <br>{{'HOME.'+brand.name | translate}}
         <br></div> 
        </dd> </dl>