Description
I'm using AngularJS
I have a table that I want to show it as "Data Table" using DataTable jQuery plugin (http://datatables.net/docs/DataTables/1.9.4/DataTable.html).
The logic
ng-repeat using $scope.entities on the row .The problem
In the first time that I run it, everything is OK.
The problem start when I need to change the $scope.entities (For example: user select another list)
In the snippets below I was created simpler scenario but the logic is same.
Steps
destroy button. It will destroy the plugin and return the table to original html.Add row. It should add row to the table The problem is that all the rows were deleted instead of adding the row.Note I saw some angular directives who integrating with the plugin (datatable). I can't using it. I need to understand why the view nodes are deleting.