[Vuejs]-Why my v-for does not work properly, displays one number and not several as it should

0👍

The basic answer is, your computed property is returning a number.
As you can see in this screenshot
enter image description here

I don’t really know what you were trying to achieve with that computed property, but if you iterate for example over posts, it will work.
Of course you will need to parse and do stuff…

0👍

You are setting the limit on the axios call to 10. This means that you are getting 10 posts and not 98 and you only have one page.

Check this fiddle for a request limit of 100.

axios.get(`https://jsonplaceholder.typicode.com/posts?_start=${this.counter}+${this.zero}&_limit=100`).then(response => {
          this.posts = response.data
      })

Leave a comment