Skip to content

Commit a07cc2c

Browse files
author
Matheus Wichman
committed
dirPagination: Set async mode to false when totalItems attribute is not defined
1 parent a5e1a86 commit a07cc2c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/directives/pagination/dirPagination.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
}
9090
});
9191
} else {
92+
paginationService.setAsyncModeFalse(paginationId);
9293
scope.$watchCollection(function() {
9394
return collectionGetter(scope);
9495
}, function(collection) {
@@ -557,6 +558,10 @@
557558
instances[instanceId].asyncMode = true;
558559
};
559560

561+
this.setAsyncModeFalse = function(instanceId) {
562+
instances[instanceId].asyncMode = false;
563+
};
564+
560565
this.isAsyncMode = function(instanceId) {
561566
return instances[instanceId].asyncMode;
562567
};

0 commit comments

Comments
 (0)