head
property in component as a function JS-W1013It 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
}
}
}