Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free.

I'm populating tbody using ng-repeat and later initializing dataTables on the table using a directive as can be seen in this jsfiddle.

test.directive("jqTable", function () {
    return function (scope, element, attrs) {
        scope.$watch("assignments", function (value) {//I change here
            var val = value || null;            
            if (val)
                element.dataTable({"bDestroy": true});
        });
    };
});

DataTable is getting initialized and rendering properly but the search functionality is not working. There are no warnings or errors in the console. Can anyone help me identify what the issue is and how to get the search functionality working on the datatable?

share|improve this question
    
What is the problem exactly? No matches, or nothing happening when typing in the search box? –  Daniel B Aug 6 at 7:28
    
@DanielB No matches. Try search on the dataTable in the jsfiddle I noted in my question. –  Nazeer Aug 6 at 7:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.