#Astro.props is an empty object
1 messages · Page 1 of 1 (latest)
i expect it to have the page parameter but its not there 😦
i see that: Astro.url.pathname also works.
how can i import this into a vue component?
If your component doesn't have props that's normal
https://docs.astro.build/en/core-concepts/astro-components/#component-props
You can pass the pathname as a prop to your vue component
thank you very much!
im completly new but Astro works very smooth!
@supple lantern 1 other question tho, does Astro support virtual routing (so not a hard a href but something like router-link) ?
No it doesn't, but I've seen people mention this package that can add SPA-like navigations
https://www.npmjs.com/package/swup