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

Expose let:location in router

Open KittenHero opened this issue 5 years ago • 1 comments

This allows users to access the location in the Router component not under a Route, e.g, navigation components

<Router let:location>
  <Navigation location={location} />
  <Route path='foo'>
   ...
</Router>

KittenHero avatar Jan 05 '21 10:01 KittenHero

@EmilTholin Any plans to merge this? Would be extremely useful to be able to implement features like active navlink styling.

pheuter avatar Oct 14 '21 14:10 pheuter

Hi I forked svelte-routing > https://github.com/krishnaTORQUE/svelte-routing-next. And I merged your PR there. Please let me know if you have any query. Thanks.

krishnaTORQUE avatar Apr 17 '23 08:04 krishnaTORQUE

MERGED View Changelog: https://github.com/EmilTholin/svelte-routing/blob/master/CHANGELOG.md

krishnaTORQUE avatar May 05 '23 06:05 krishnaTORQUE