mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
example: Add head titles
This commit is contained in:
parent
2f1d8b4c1c
commit
93f3082c43
@ -8,6 +8,9 @@
|
||||
<script>
|
||||
export default {
|
||||
layout: 'secondary',
|
||||
transition: 'bounce'
|
||||
transition: 'bounce',
|
||||
head: {
|
||||
title: 'About'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -6,3 +6,11 @@
|
||||
<p><nuxt-link to="/users-2">Lists of users #2 (with `watch`)</nuxt-link></p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
head: {
|
||||
title: 'Home'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -50,6 +50,9 @@ export default {
|
||||
getTransitionName(newPage) {
|
||||
return newPage < this.page ? 'slide-right' : 'slide-left'
|
||||
}
|
||||
},
|
||||
head: {
|
||||
title: 'Users #2'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -36,6 +36,9 @@ export default {
|
||||
totalPages: data.total_pages,
|
||||
users: data.data
|
||||
}
|
||||
},
|
||||
head: {
|
||||
title: 'Users'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user