I have problem with management several tables using Angular DataTables.
Here are fragments of my html code:
<table datatable="ng" dt-options="dtOptions" dt-instance="dtInstance"
class="row-border hover table table-striped table-bordered">
<table datatable="ng" dt-options="dtOptions2" dt-instance="dtInstance2"
class="row-border hover table table-striped table-bordered">
and that's my controller code:
$scope.dtInstance = {};
$scope.dtInstance2 = {};
$scope.dtOptions = DTOptionsBuilder
.newOptions()
.withTableToolsButtons([]);
$scope.dtOptions2 = DTOptionsBuilder
.newOptions()
.withTableToolsButtons([]);
I would like to update table2, but can't do it, cause my dtInstance2 is empty, but other works well: all data displayed.
How I can fix it and obtain the dtInstance2?