It is not a recommended way of routing to pass props between pages, even original Vue-Router doesn’t recommend it. At the moment you can pass props by url in router params and router query.
So if you have such route specified in passed routes:
And you load this by
/user/25/ url (by clicking on link with such
href or by router API) then
UserPageComponent will receive prop
id: 25, and to make it work this
id prop must be specified in component props.
Another way is to pass some data via url query like
/user/?id=25. Then in user page it will be accessible via
Such approach has limitations, you can’t pass some complex or large data via props, but in many cases it is not needed and should be done in other ways.
Anyway, i can say more if you show me full app example and what data and where you want to pass data props