Asynchronous meta in nuxt?

Nuxt uses vue-meta to install meta pages. In General, it is functional even if to pass to a reactive value.

But for the ssr need to have the headers installed during server-side generation, within the asyncData.
Until I realized how to do it.
April 7th 20 at 15:38
1 answer
April 7th 20 at 15:40
Solution
asyncData: () => ({
 title: "sunt aut facere repellat provident occaecati excepturi optio reprehenderit"
}),
head() {
 return {
 title: this.title // title is put as you need
}
}

like no problem, checked in the sandbox
Tin, really works. Ahaha, it was enough to move the call to head after asyncData, sorry, I didn't get it)
Thank you - Leann39 commented on April 7th 20 at 15:43

Find more questions by tags Nuxt.jsSearch engine optimizationVue.js