mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-22 23:25:20 +00:00
22 lines
368 B
Svelte
22 lines
368 B
Svelte
<script context="module">
|
|
import counts from '../_counts.js';
|
|
|
|
export function preload() {
|
|
return {
|
|
count: counts.y += 1
|
|
};
|
|
}
|
|
</script>
|
|
|
|
<script>
|
|
import { stores } from '@sapper/app';
|
|
const { page } = stores();
|
|
|
|
export let count;
|
|
export let segment;
|
|
</script>
|
|
|
|
<span>y: {$page.params.y} {count}</span>
|
|
<slot></slot>
|
|
|
|
<span>child segment: {segment}</span> |