lundi 5 janvier 2015

Run code on Ember view parameter change

A week ago I ran into a problem with emberjs and DataTables.


I was using ember-data to get data from the asp codebehind using webmethods based on the route parameters. Then I would use that data to create a table with datatables. However, when I changed the route, which changed the data and therefore changed the html, datatables would add the rows, but it wouldn't remove the old rows. In addition none of the functionality would work on the new rows and whenever I would sort, it would remove the new data.


Please let me know if anyone has a better answer than the one I posted.





Aucun commentaire:

Enregistrer un commentaire