Help setting up project #151
Unanswered
CamKem
asked this question in
Help & support
Replies: 1 comment
-
Instead of updating the prop, you need to use the prop as initial data and then use a different variable to contain the current page data: const props = defineProps({
articles: Object,
});
const laravelData = props.articles;
const getResults = async (page = 1) => {
const response = await fetch(`?page=${page}`);
laravelData.value = await response.json();
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like your assistance with using the laravel vue pagination package,
This is the vue file I am trying to paginate with the laravel paginate function & the vue package.
Please help!
Beta Was this translation helpful? Give feedback.
All reactions