DEV Community

Borhan Tipu
Borhan Tipu

Posted on

Nuxt SSR head meta attributes Correct Format

Wrong Format

data: () => {
    return {
      title: 'Page Title',
    }
  },
  head: () => {
    return {
      title: this.title
    }
  },
Enter fullscreen mode Exit fullscreen mode

Correct Format

data: () => {
    return {
      title: 'Page Title',
    }
  },
  head() {
    return {
      title: this.title
    }
  },
Enter fullscreen mode Exit fullscreen mode

Top comments (0)