mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-20 06:15:15 +00:00
rename .html files to .svelte
This commit is contained in:
22
test/apps/scroll/src/routes/tall-page.svelte
Normal file
22
test/apps/scroll/src/routes/tall-page.svelte
Normal file
@@ -0,0 +1,22 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
export let barLink = false;
|
||||
|
||||
onMount(() => {
|
||||
barLink = true
|
||||
});
|
||||
</script>
|
||||
|
||||
<h1>A tall page</h1>
|
||||
|
||||
<a href="tall-page#foo">scroll to foo</a>
|
||||
<div style="height: 9999px"></div>
|
||||
|
||||
<div id="foo">
|
||||
<a href="another-tall-page">link</a>
|
||||
<a href="another-tall-page" sapper-noscroll>link</a>
|
||||
{#if barLink}
|
||||
<a href="another-tall-page#bar">link</a>
|
||||
{/if}
|
||||
</div>
|
||||
Reference in New Issue
Block a user