I want to have a multi-language view with ngTable. To do this, I install in my controller $ scope.translate (valid json), which contains my traductions. In my opinion, I want to set my data name, for example {{translate.code}}, etc.
my opinion:
<table ng-table="tableParams" class="table ng-table-responsive"> <tr ng-repeat="product in $data"> <td data-title="'{{translate.code}}'" > {{product.code}} </td> <td data-title="['translate.reference']" > {{product.reference}} </td> <td data-title="'Label'" > {{product.label}} </td> <td data-title="'Size'" ng-show="manageSizeColor == true"> {{product.size}} </td> <td data-title="'Quantity'" > <ac-quantity minquantity="1" cquantity="product.quantity"></ac-quantity> </td> <td data-title="'Price'"> <b>{{product.price + currency}}</b> </td> </tr> </table>
source share