I'm using angular directive with jquery datatables, in the mRender
function I used the following code to render row actions:
datatables mRender function:
var renderRowActions = function (data, type, row) {
//var markup = $('#rowActions').html().replace(/{rowId}/g, row[0]);
var markup = '<div row-actions action="delete(" + row[0] + ")" ></div>';
return markup;
};
directive code:
app.directive('rowActions', function () {
return {
restrict: 'A',
replace: true,
template: '<button data-ng-click="action()"></button>',
scope: {
action: "&"
}
};
});