Я пытаюсь создать срез, который будет отсортирован, но срез не связывается с setCurrentPage (ts)
HTML
*ngFor="let item of galleries | searchGalleries : searchValue | slice:start:end; trackBy:item?.id"
ц
setCurrentPage(page = 0) {
this.limit = 3;
this.currentPage = page;
this.start = this.currentPage * this.limit;
this.end = this.start + 3;
}