example: Add head titles

This commit is contained in:
Sébastien Chopin 2018-01-17 09:38:11 +01:00
parent 2f1d8b4c1c
commit 93f3082c43
4 changed files with 18 additions and 1 deletions

View File

@ -8,6 +8,9 @@
<script> <script>
export default { export default {
layout: 'secondary', layout: 'secondary',
transition: 'bounce' transition: 'bounce',
head: {
title: 'About'
}
} }
</script> </script>

View File

@ -6,3 +6,11 @@
<p><nuxt-link to="/users-2">Lists of users #2 (with `watch`)</nuxt-link></p> <p><nuxt-link to="/users-2">Lists of users #2 (with `watch`)</nuxt-link></p>
</div> </div>
</template> </template>
<script>
export default {
head: {
title: 'Home'
}
}
</script>

View File

@ -50,6 +50,9 @@ export default {
getTransitionName(newPage) { getTransitionName(newPage) {
return newPage < this.page ? 'slide-right' : 'slide-left' return newPage < this.page ? 'slide-right' : 'slide-left'
} }
},
head: {
title: 'Users #2'
} }
} }
</script> </script>

View File

@ -36,6 +36,9 @@ export default {
totalPages: data.total_pages, totalPages: data.total_pages,
users: data.data users: data.data
} }
},
head: {
title: 'Users'
} }
} }
</script> </script>