Home

Issue: 684

Access to vue-meta head function while using vue-class-component

[issue link]

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

This question is available on Nuxt.js community (#c592)