mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-14 03:54:46 +00:00
Slot-based routing (#573)
This commit is contained in:
@@ -1 +0,0 @@
|
||||
<h1>{params.slug.toUpperCase()}</h1>
|
||||
@@ -12,10 +12,10 @@
|
||||
import { page } from '@sapper/app';
|
||||
|
||||
export let count;
|
||||
export let child;
|
||||
export let segment;
|
||||
</script>
|
||||
|
||||
<span>y: {$page.params.y} {count}</span>
|
||||
<svelte:component this={child.component} {...child.props}/>
|
||||
<slot></slot>
|
||||
|
||||
<span>child segment: {child.segment}</span>
|
||||
<span>child segment: {segment}</span>
|
||||
Reference in New Issue
Block a user