svelte-routing icon indicating copy to clipboard operation
svelte-routing copied to clipboard

Request: Access to current URL from the Router component slot

Open SamuelChanMD opened this issue 3 years ago • 1 comments

Hello,

I noticed in this other issue that we are able to access the current URL location in the Route slot: https://github.com/EmilTholin/svelte-routing/issues/62

It would be nice if we can access it from the Router slot as well.

SamuelChanMD avatar Jun 30 '20 02:06 SamuelChanMD

That's already possible.

<Route path="{path}" let:location>
  <Component location={location} />
</Route>

galvez avatar Jun 23 '22 01:06 galvez