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> <script>
import Nav from '../components/Nav.html'; import Nav from '../components/Nav.html';
export let child; export let segment;
</script> </script>
<style> <style>
@@ -15,8 +15,8 @@
} }
</style> </style>
<Nav segment={child.segment}/> <Nav {segment}/>
<main> <main>
<svelte:component this={child.component} {...child.props}/> <slot></slot>
</main> </main>