Open sasham43 opened 7 years ago
Thanks for the report.
If anyone wants to have a go at fixing this, comment below. Honestly I have little time right now to work on this.
I am basically having this exact problem!
I have an array of items with detail data for each item displayed. When deleting the item objects from the array, it deletes all of them, but it does not delete the last one from the view model. It is gone from the data, but it's being held onto by something in the dirPaginate directive.
When I replaced dir-paginate with ng-repeat, I was able to verify that it is, in fact, working as expected, but something appears to be preventing it from reflecting that the last item was deleted. This is the closest issue I have seen to match the behavior I am witnessing on my end. My friend said something about it being related to the way $compile is being done?
hi @sasham43 see my workaround.
range.lower is 1 even when the collection is empty, so when using a custom template it displays 'Showing 1-0 of 0'
https://plnkr.co/edit/FHqqsJRVPrp50CAobTld?p=preview