-
-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass active url into template component #42
Comments
The URL is available at // _default.page.server.js
export const passToClient = ['pageProps', 'url']; You can then pass Does that work for you? |
I will try, thanks |
FYI a full integration with Vue Router is in progress. |
See https://github.com/brillout/vite-plugin-ssr#active-links-a-classis-active. Note that |
Hi, at first thanks for your job!
But I have some question about pass some routing props into components to render active link or etc.
As example, I have a navigation component with set of links, and one of link need to have an active class.
Via Vue-Router I have a global props
$router
or$route.path
into templates scope, but I don't know how to do that with your tool.The text was updated successfully, but these errors were encountered: