@open-rlb/ng-bootstrap 2.4.2 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6522,8 +6522,12 @@ class DataTableComponent {
|
|
|
6522
6522
|
this.pagination = new EventEmitter();
|
|
6523
6523
|
}
|
|
6524
6524
|
ngOnInit() {
|
|
6525
|
-
this.currentPage
|
|
6526
|
-
|
|
6525
|
+
if (this.currentPage == null) {
|
|
6526
|
+
this.currentPage = 1;
|
|
6527
|
+
}
|
|
6528
|
+
if (this.pageSize == null) {
|
|
6529
|
+
this.pageSize = 20;
|
|
6530
|
+
}
|
|
6527
6531
|
}
|
|
6528
6532
|
get pages() {
|
|
6529
6533
|
return Math.ceil((this.totalItems || 0) / (this.pageSize || 1));
|