Commit 6d7dc441 authored by Xiaoyu Yang's avatar Xiaoyu Yang
Browse files

setpage not private

parent 5bd83b09
...@@ -23,7 +23,7 @@ export class AdminBooklistComponent { ...@@ -23,7 +23,7 @@ export class AdminBooklistComponent {
return Math.floor((itemsCount - 1) / itemsPerPage) + 1; return Math.floor((itemsCount - 1) / itemsPerPage) + 1;
} }
private setPage(pageNumber: number) { setPage(pageNumber: number) {
this.currentPage = pageNumber; this.currentPage = pageNumber;
this.displayedBooks = this.displayedBooks =
this.books.slice((pageNumber-1)*this.ITEM_PER_PAGE, pageNumber*this.ITEM_PER_PAGE); this.books.slice((pageNumber-1)*this.ITEM_PER_PAGE, pageNumber*this.ITEM_PER_PAGE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment