-
Pretty much the title, i.e. can I access |
Beta Was this translation helpful? Give feedback.
Answered by
AM-77
Dec 29, 2022
Replies: 1 comment 1 reply
-
Yes you can, by using the you can access it in +page.svelte or AnyComponent.svelte <script>
import { page } from "$app/stores";
$: console.log({ slug: $page.params.slug });
</script>
<p>{$page.params.slug}</p>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
205g0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can, by using the
$page
store from$app/stores
.you can access it in +page.svelte or AnyComponent.svelte