head
property in component as a function JS-W1013head
property of a component should be a function 5<script>
6export default {
7 /** require-head-as-head */
8 head: { 9 title: "My page",10 },11
12 /** no-globals-in-created */
13 created() {
It is recommended to use head
as a function as it provides access to more data through this
.
export default {
head: {
title: "My page"
}
}
export default {
head() {
return {
title: this.title
}
}
}