Answer the question
In order to leave comments, you need to log in
Do you want to continue with the request?
There is a service which contains two methods: get() и filter()
. Both execute the request and return data from the north.
The first method is called in the default component. - the data is received and given to the pagination service.
When the user selects values from the filter and presses the Filter button, the data is received by calling the filter() method from the service. After all the same. Except - that when navigating through the page - the first get() method is called.
How to continue calling the last method?
The function that is called when going to the next page:
public getPage(page: number): void {
this.paginationService.calculateOffsetLimit(page);
this.paginationService.updateCurerntPage(page);
this.applicationService.get(this.paginationService.getOffset(), this.paginationService.getLimit());
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question