angular-data-table
angular-data-table copied to clipboard
Pagination not working when scrollbarV: false
http://codepen.io/anon/pen/ORAmPB
As the above codepen, if I navigate the pages again and again (around 4 times) data changing in the table will stop eventually. It seems like paging function keeps reduce data record in the set.
ArrayVariable.slice will actually modify the ArrayVariable, changing the dataset you're paging off of each time. You'll want to replace the following.
Before
$scope.paging = function(offset, size) {
let d = dummyData.slice();
After
$scope.paging = function(offset, size) {
const dummyDataCopy = angular.copy(dummyData);
let d = dummyDataCopy.slice();