Currently, I am utilizing a plain Datatable in AngularJS without any Angular-Datatable libraries. Everything appears to be working well except for one issue.
Here is the datatable code snippet:
$scope.siInfoTable = $('#siInfoTable').DataTable({
'columns': [
{
"render": function (data, type, row, meta) {
data = '<button class="btn btn-primary btn-sm" ng-click="test()">TEST</button>';
return data;
}
}]
});
This code is executed within a $scope.load
method and is loaded before the page finishes rendering. However, when a user clicks on the button generated in the datatable, it does not seem to recognize the ng-click
directive.
Is there a solution to this issue?