Skip to content
Advertisement

Tag: pagination

Vue.js pagination with http requests

I have table with pagination-nav component: I get table content using method getTrades with http request to json API: Where every ${page} corresponds certain slice of data. Server-side code and requests work fine. Now I want to pass page number from button clicked to method getTrades. For this purpose I call getTrades method inside linkGenmethod. Instead of right page number

Javascript using Fetch and pagination, recursive?

Hello I’m new to Javascript and APIs. But I have an excersise where I should get Data from. https://swapi.co/api/planets/ The problem is that it doesn’t list all the planets at once so that URL only shows the first 10 entries while https://swapi.co/api/planets/?page=2 shows the next and so on. This is my current code, it works but I don’t think I’m

Advertisement