mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 00:52:01 +00:00
23 lines
286 B
Vue
23 lines
286 B
Vue
<template>
|
|
<div>
|
|
<h2>Page 1</h2>
|
|
|
|
<NuxtLink
|
|
id="link"
|
|
to="/page-2"
|
|
>
|
|
To page 2
|
|
</NuxtLink>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
layout: 'layout-1',
|
|
|
|
mounted () {
|
|
window.mountedCount = (window.mountedCount || 0) + 1
|
|
}
|
|
}
|
|
</script>
|