SlicePipe角函数

时间:2019-03-23 09:00:12

标签: javascript html angular

我正在尝试创建要排序的切片,但该切片无法与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;
  }

0 个答案:

没有答案