To make the Angular action trigger from the DataTable plugin, you just need add the below code within the loadDataTable Function.
// Define this function first. function createdRow(row, data, dataIndex) { // Recompiling so we can bind Angular directive to the DT $compile(angular.element(row).contents())(scope); } // Then, add the below line with the "DTOptionsBuilder.newOptions()" .withOption('createdRow', createdRow);Please find the sample complete function with above added code.
No comments:
Post a Comment
Please post any queries and comments here.