Files
sapper/test/app/routes/[x]/[y]/_layout.html
Rich Harris 58de0f9c99 Nested routes
Fixes #262
2018-07-22 21:00:37 -04:00

20 lines
309 B
HTML

<span>y: {segment} {count}</span>
<svelte:component this={child.component} {...child.props}/>
<script>
import counts from '../_counts.js';
export default {
preload() {
return {
count: counts.y += 1
};
},
oncreate() {
this.set({
segment: this.get().params.y
});
}
};
</script>