handle tag click from another page

This commit is contained in:
Benjamin GROENEVELD
2018-10-13 21:31:22 +02:00
parent abcac75826
commit a399d87d9b
5 changed files with 63 additions and 20 deletions

View File

@@ -1 +1,2 @@
<div style="height: 9999px"></div>
<div style="height: 9999px"></div>
<p id="bar">element</p>

View File

@@ -3,4 +3,21 @@
<div id="foo">
<a href="another-tall-page">link</a>
<a href="another-tall-page" sapper-noscroll>link</a>
</div>
{#if barLink}
<a href="another-tall-page#bar">link</a>
{/if}
</div>
<script>
export default {
data() {
return {
barLink: false
};
},
oncreate() {
this.set({ barLink: true })
}
}
</script>