[Vuejs]-Nuxt.js's meta property in layout file is not work in middleware

4πŸ‘

From any component or layout:

this.$nuxt.$options.context.route.meta;

0πŸ‘

I’m Sorry.

It seems that meta proerty can’t be used in layout file.

I confirmed from this following PR。

from pages only, into the $route.meta data

https://github.com/nuxt/nuxt.js/issues/3751

Leave a comment