My Scenario: Hey im sustaining a system that retrieves data from a database and and then passes that data to vue.js with in turn displays it in jQuery DataTabes.
The problem i have is that when DataTables is originally initialized it seems the data is saved in the table i initialized. When i retrieve new information it doesn't update the existing data and it breaks the table.
also the data coming back from the request is exactly what i need its just the DataTables that's giving me a problem
What I've Tried:
destroying the table using $('#table').DataTable.destroy()
and then re-initializing it: either says cannot re-initialize datatables or just displays old data as usual.
Re-initializing the table with a new ID and changing the current table id to math the new ID: just doesn't work displays the table as a normal table not a datatable.
My Question:
How do i use DataTables with vuejs to pull NEW data without refreshing the page?
or
How to i remove and re-initialize datatables?
Edit: if there are any other plugins like DataTables then i'd love to know about them.