I have an angular application that is also using jquery.dataTables. When I use datatables to build a dynamic table with th
For those who wants to access $compile and $scope from outside angular and apply it to the datatable rows.. here I have the answer
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
var $injector = angular.element(document.body).injector();
var scope = angular.element(document.body).scope();
$injector.invoke(function($compile) {
$compile(nRow)(scope);
});
},
with this you can add every ng event to the row and it will work! :D