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