i'm new in angular, i try to use the module ng2-completer with TranslateModule.
The problem is when i retreive the JSON from the server-side, The JSON is:
[{"id":10,"tipo":"EUR"},{"id":20,"tipo":"USD"}]
I want to use tipo as value in the tag
<ng2-completer #openCloseSelect
class="completer-limit"
[datasource]="dataService4"
[inputClass]="'form-control'"
[minSearchLength]="0"
[openOnFocus]="false"
[placeholder]="'SCEGLI' | translate"
[autoHighlight]="true"
[selectOnClick]="true"
[fillHighlighted]="false">
</ng2-completer>
where "dataService4" is initialize in the constructor as
this.dataService4 = completerService.local(this.diviseAzioni, "tipo", "tipo"); //diviseAzioni is list of Objects class DivisaAzioni { id: number; tipo: string;} (the JSON from server-side)
and use the TranslateModule of angular to translate value of tipo.
e.g. EUR: "Euro", USD: "US Dollars" as textLabel of the select.
Thx.