I'm using the angular material pagination and want to add one word next to each "next" and "previous" button. I was able to override the "page 1 - 100" text by doing the following:
Component:
const list = document.getElementsByClassName('mat-paginator-range-label');
list[0].innerHTML = this.firstItemOfPage.toString() + '-' + currentPageRange + ' of ' + this.totalItems;
HTML:
<mat-paginator
[length]="totalItems"
[pageSize]="pageSize"
(page)="updatePayments($event)"
hidePageSize>
</mat-paginator>
I'm trying to do the same to add "Next" and "Last" next to each button, just as you can see in the attached design. I also attached how my work looks now, without the Next and Last text. Any help would be greatly appreciated!