I am working on using ng-table to display reports as tables. However, I had a problem using the data-title attribute and dynamic header assignment.
In the following example, I am trying to set the data-title attribute as follows.
<td ng-repeat="field in user" data-title="'{{ fields[$index] }}'"> {{ field }} </td>
$scope.fields = ["Names", "Ages"]; defined inside the controller. When checking an element, the data header attribute is set correctly, but the headers are not processed properly, resulting in the {{fields [$ index]}} header.
Here's a live example: http://plnkr.co/edit/gBS6FGINayYufPGqCMxb?p=preview
angularjs ngtable
user2882597
source share