Static GitHub Issues

[171] Setting head data from ajax request on page.

prev: Layout specification for error pages
next: Nuxt not building on Windows machine

Ok so I have something like this

  export default {
    data ({error}) {
      return axios.get(`http://api.dev/content`)
      .then((res) => {
        return res.data
      }).catch((e) => {
        return error({ statusCode: 404, message: e.message })
      })
    },
    head: {
      title: 'Home Page',
      meta: [
        { hid: 'description', name: 'description', content: 'Home page description' }
      ]
    }

  }

but where the head.title and meta tags are, I'd like to pull that value in dynamically. like from data.page.title or something along those lines. How would I do that here?

<!--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/c145">#c145</a>)</em></sub></div>