Hi,
I am trying to get access to the head function from vue-meta while using vue-class-component but it doesn't seem to be working. What is the best way to do so?
import Vue from 'vue'
import Component from 'vue-class-component'
@Component
class Index extends Vue {
name = 'Index'
head() {
return {
title: this.name
}
}
}
export default Index
Thanks in advance
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c592">#c592</a>)</em></sub></div>