Fetch AXIOS on vue but only the first 100

Issue

This Content is from Stack Overflow. Question asked by swnz

How can I fetch only the first 100 items randomly:

if I use this <ActorList v-for="actors in list" :key="actors.id" :actors= "actors"/>
from an api, my browser crashes as its too much data.

im using this under script

data() {
return {
list: []
};
},
async mounted() {
const result = await axios.get("https://api.tvmaze.com/people");
console.log(result.data);
this.list = result.data;
},
components: { ActorList }
}



Solution

This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?