/
main.vue
executable file
·51 lines (48 loc) · 935 Bytes
/
main.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<template lang="html">
<div class="main">
<h1>Main page</h1>
<p>This is an example of a named views</p>
<ul>
<li>
<NuxtLink to="/">
Root
</NuxtLink>
</li>
<li>
<NuxtLink to="/section">
Section
</NuxtLink>
</li>
<li>
<NuxtLink to="/child/123">
Child 123
</NuxtLink>
</li>
<li>
<NuxtLink to="/child/234">
Child 234
</NuxtLink>
</li>
<li>
<NuxtLink to="/main">
Main page with named view in layout
</NuxtLink>
</li>
</ul>
<hr>
<p>At top of this page there is named view from layout!</p>
</div>
</template>
<script>
export default {
// eslint-disable-next-line vue/no-reserved-component-names
name: 'Main'
}
</script>
<style scoped>
.main {
margin: auto;
max-width: 420px;
padding: 10px;
}
</style>