mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-13 10:45:34 +00:00
update for slot based routing
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script>
|
||||
import Nav from '../components/Nav.html';
|
||||
|
||||
export let child;
|
||||
export let segment;
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -15,8 +15,8 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
<Nav segment={child.segment}/>
|
||||
<Nav {segment}/>
|
||||
|
||||
<main>
|
||||
<svelte:component this={child.component} {...child.props}/>
|
||||
<slot></slot>
|
||||
</main>
|
||||
Reference in New Issue
Block a user