Reopen sorting-dynamic-tables-sorts-the-old-value

Reopen sorting-dynamic-tables-sorts-the-old-value

andompandomp Posts: 5Questions: 1Answers: 0

I need to reopen an old question

I use angular and i have inside the TD element not simples values, but sometimes i have inputs element or other dom elements that contains the values i need to sort.

<td><input [ngClass]=".." [(ngModel)]="theValue"></td>

How can i update these values without redraw the tables and maintains the dom element inside.

I've tried to use
const rowElement = $('tr');
(<any>$('#table').dataTable()).fnUpdate(model.item, rowElement, 2, false);

It works BUT it removes all the angular code inside the TD element.

Please i need help.

Best regards


This question has an accepted answers - jump to answer


Sign In or Register to comment.