I have my html table as below:
<div>
<table datatable="" class="table table-condensed" id="listTable">
<thead>
<tr>
<th>NAV ID</th>
<th>NAV DATE</th>
<th>DESCRIPTION</th>
<th>AMOUNT</th>
<th>ADMIN FEE</th>
<th>PURCHASE PRICE</th>
<th>POSTED BY</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="navs in navs">
<td>{{navs.NAV_ID}}</td>
<td>{{navs.NAV_DATE}}</td>
<td>{{navs.DESCRIPT}}</td>
<td>{{navs.AMOUNT}}</td>
<td>{{navs.ADMIN_FEE}}</td>
<td>{{navs.P_PRICE}}</td>
<td>{{navs.STAFFNAME}}</td>
</tr>
</tbody>
</table>
</div>
and I have the js script to render the data in my html table. How can i use datatables plugins and the js file. i use the script below too load the values into my html page. the values are loaded well but i am stuck when it comes to displaying the data in a datatable
angular.module('CrudApp', []).
config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/', {
templateUrl: 'assets/templates/list.html',
controller: ListCtrl
}).
when('/addNavs', {
templateUrl: 'assets/templates/addNewNav.html',
controller: AddCtrl
}).
otherwise({
redirectTo: '/'
});
}
]);
function ListCtrl($scope, $http) {
$http.get('api/getnavs').success(function(data) {
$scope.navs = data;
});
}