We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 853a5c0 + c7de7b0 commit 01a43f4Copy full SHA for 01a43f4
src/directives/pagination/dirPagination.js
@@ -93,7 +93,8 @@
93
return collectionGetter(scope);
94
}, function(collection) {
95
if (collection) {
96
- paginationService.setCollectionLength(paginationId, collection.length);
+ var collectionLength = (collection instanceof Array) ? collection.length : Object.keys(collection).length;
97
+ paginationService.setCollectionLength(paginationId, collectionLength);
98
}
99
});
100
0 commit comments