Angular pagination jumps to the specified page

this is my code:

<tr *ngFor="let items of topics.data | paginate: { itemsPerPage: 5, currentPage: p }">
</tr>

 <div class="d-flex">
          <pagination-controls
            (pageChange)="p = $event"
            previousLabel=""
            nextLabel=""
            directionLinks="true"
            maxSize="6"
            autoHide="false"
            responsive="true"
            class="myPagination">
          </pagination-controls>
          <span class="small"></span>
          <input style="width: 2rem; height: 1.2rem">
          <button nz-button nzType="primary" [nzSize]=""small""></button>
        </div>

basic functions have been implemented
now I want to enable the user to enter the number of the specified page, click "Jump", you can jump to the specified page, and then it won"t happen. I hope the great god can give us some guidance when he sees it. Thank you very much

Aug.29,2021

to jump to the specified page is to update the value of the current currentPage, the same reason that you click on the next page and the previous page, but also to update the value of currentPage

.
Menu