update for slot based routing

This commit is contained in:
Rich Harris
2019-02-21 17:03:40 -05:00
parent 68afbdf0f9
commit 186fb8525e

View File

@@ -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>