Thomas Blauenfeldt Thomas Blauenfeldt - 1 year ago 75
AngularJS Question

angular datatables ng-repeat doesn't work

I'm using angular-datatables but when I'm using

, the functions of datatables doesn't work (sort, search, count, etc)


<table datatable="" class="table table-striped table-bordered" cellspacing="0" width="100%">
<th><input type="checkbox" id="checkall" /></th>

<tbody ng-repeat="timesheet in timesheets">
<td><input type="checkbox" class="checkthis" /></td>
<td> <standard-time-no-meridian etime='timesheet.TotalTime'></standard-time-no-meridian></td>
<td><p data-placement="top" data-toggle="tooltip" title="Edit"><button class="btn btn-primary btn-xs" data-title="Edit" data-toggle="modal" data-target="#edit" ><span class="glyphicon glyphicon-pencil"></span></button></p></td>



.controller('TimesheetMainCtrl', function ($rootScope, $scope, $timeout) {

dpd.timesheetold.get(function (result, err) {

if (err) return console.log(err);
$timeout(function() {
$scope.timesheets = result;



I tried adding ng to datatable="" but this just give me an console error

TypeError: Cannot read property 'serverSide' of undefined
at Object.f [as fromOptions] (angular-datatables.min.js:6)

Answer Source

seams to be an error in angular datatables

will be fixed in 0.51 until that it works running an older version

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download