Currently, I am utilizing the Ng2-Smart-Table component along with server-side pagination. Upon testing out the provided example, I delved into the requests being made and noticed that only JSON records or objects were being returned. Here is an example of the response: IMAGE - Response Example.
One lingering question I have is how the component determines the last page. For instance, in the example provided, it goes up to 500 pages. Here is an image of the last page pagination: IMAGE - Example last page pagination
I am currently in the process of trying to grasp this concept in order to implement it into my API. I plan on incorporating it slightly differently from the example by making requests only through the service. Hence, I am eager to understand how the component retrieves the value of the last page.