Nuxt/examples/scroll-behavior/pages/index.vue

28 lines
580 B
Vue
Raw Normal View History

2018-01-19 00:15:10 +00:00
<template>
<div class="container">
<h1>Home page</h1>
<p>
<NuxtLink to="/about">
About page
</NuxtLink>
</p>
<p>
<NuxtLink to="/users">
Lists of users
</NuxtLink>
</p>
<p>
<NuxtLink to="/long">
Long page
</NuxtLink>
</p>
<p>
<NuxtLink to="/long#anchor">
Long page #anchor
</NuxtLink>
</p>
<div class="spacer" style="width: 100%; height: 3000px; background: grey" />
<p><nuxt-link to="/another-long">Another long page</nuxt-link></p>
2018-01-19 00:15:10 +00:00
</div>
</template>