我正在尝试创建要排序的切片,但该切片无法与setCurrentPage(ts)通信
html
*ngFor="let item of galleries | searchGalleries : searchValue | slice:start:end; trackBy:item?.id"
ts
setCurrentPage(page = 0) {
this.limit = 3;
this.currentPage = page;
this.start = this.currentPage * this.limit;
this.end = this.start + 3;
}