I am working towards using ng-table to display reports in a tabular manner. However I have run into a problem using the data-title attribute and dynamically assigning the heading.
In the following example I am attempting to set the data-title attribute as follows.
<td ng-repeat="field in user" data-title="'{{ fields[$index] }}'">
{{ field }}
</td>
$scope.fields = ["Names", "Ages"];
is defined within the controller. When inspecting the element, the data-title attribute is properly set however the headings are not properly processed resulting in the heading {{ fields[$index] }}.
Here is a live example: http://plnkr.co/edit/gBS6FGINayYufPGqCMxb?p=preview