Is there a way to retrieve the table header for each column from JavaScript? When I call tableTest
, it only returns data of each row, not the header names like 'name' and 'description'. Is there a method like tableTest.data-title
to access this information?
<table ng-table="tableTest">
<tbody>
<tr ng-repeat="sample in $data">
<td data-title="'Name'" sortable="'name'">
{{sample.name}}
</td>
<td data-title="'Description'" sortable="'description'">
{{sample.description}}
</td>
</tr>
</tbody>
</table>
Any help is appreciated. Thank you!