svelte-routing
Advanced tools
Changelog
0.3.0
Split the createHistory
function into createBrowserHistory
,
createMemoryHistory
, createHashHistory
to allow for better tree shaking of
unused history creation code.
Changelog
0.2.0
Added the ability to access the match object in a matched route:
<!-- App.html -->
<Route path="/:myParam" bind:match>
<h1>{{match && match.params.myParam}}</h1>
</Route>
or:
<!-- App.html -->
<Route path="/:myParam" component="{{MyComponent}}" />
<!-- MyComponent.html -->
<h1>{{match.params.myParam}}</h1>
Changelog
0.1.0
Added the ability to give a component constructor to a route with the
component
property:
<!-- App.html -->
<Route path="/:myParam" component="{{MyComponent}}" />