Files
sapper/test/apps/layout/src/routes/[x]/[y]/[z].svelte
Brian Takita 5460896228 Checking the current_branch[i] route match against the current request's route match.
current_branch[i].match.slice(1, i+2) compared to match.slice(1, i+2)

Fixes https://github.com/sveltejs/sapper/issues/688
2019-05-20 23:03:08 -04:00

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>