Set a const when go to a page ?
Hello guys, can I go to a page and pass an object ?
I have this in my admin/races/create.vue
const race = ref<RaceFormInterface>(<RaceFormInterface>{
id: null,
raceType: 0,
name: '',
gender: '',
date: '',
time: '',
distance: 0,
price: 0,
paymentTypes: [],
maxParticipants: 0,
description: ''
})
Is it possible from a page (ex : /admin/races) to have a NuxtLink and where I can say :race="itemRace (from a v-for)" which go to /admin/race/create and set the race object in the create.vue ?
1 Reply