Closed bobwatcherx closed 2 years ago
You need to define your route as
<Route path="details/:id" component={Details}></Route>
In your snippet, the :
in :id
was missing. Then you can access them like so:
<script>
import { useParams } from 'svelte-navigator'
let params = useParams()
</script>
<!-- Don't forget the "$" to access the current store value -->
{$params.id}
i want send params from my variable
localhost:3000/details/myparams
example
my Details.Vue