I have an array of object inside my angular component like the following:
export class Result implements OnInit {
sortBy = [
{ id: 'total', name: 'Sort by Price' },
{ id: 'time', name: 'Fast tour' },
{ id: 'delDate', name: 'Sort by delivery date' },
{ id: 'readyDate', name: 'Sort by tour ready date' }
];
....rest of code
}
and in my template I'm using it in my custom select component like the following:
<app-material-select
formControlName="sortBy"
defaultValue="total"
labelName="Sort by"
[options]="sortBy" >
</app-material-select>
And I have tried to make a work arround to make the translation using angular-localize but didn't found actually, so any ideas how?