mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-23 15:41:32 +00:00
current_branch[i].match.slice(1, i+2) compared to match.slice(1, i+2) Fixes https://github.com/sveltejs/sapper/issues/688
20 lines
380 B
Svelte
20 lines
380 B
Svelte
<script context="module">
|
|
import counts from '../_counts.js';
|
|
|
|
export function preload() {
|
|
return {
|
|
count: counts.z += 1
|
|
};
|
|
}
|
|
</script>
|
|
|
|
<script>
|
|
import { stores } from '@sapper/app';
|
|
const { page } = stores();
|
|
|
|
export let count;
|
|
</script>
|
|
|
|
<span>z: {$page.params.z} {count}</span>
|
|
<a href="foo/bar/qux">goto foo/bar/qux</a>
|
|
<a href="foo/abc/def">goto foo/abc/def</a> |