I have a navigation with list of cities which is being generated through angular. Each city has data binded to it. When user clicks on any city, a table should be rendered with data of city. First time when user clicks on city, it works fine but second time it does not update the DOM. I have gone through my code multiple times, and have not found any missing data or broken link. I am using ng-table to generate table. Please help
function createTable(data){ var table = new ngTableParams({ page: 1, // show first page count: 10 // count per page }, { total: data.length, // length of data counts:[], getData: function($defer, params) { $defer.resolve(data.slice((params.page() - 1) * params.count(), params.page() * params.count())); } }); return table; }
Aucun commentaire:
Enregistrer un commentaire