composition-api
composition-api copied to clipboard
feat: add definePageMeta to use it with nuxt 2 and @nuxtjs/composition-api package
provide a way to define nuxt related properties like (meta, layout, middleware ..etc) using @nuxtjs/composition-api package within setup script
something like definePageMeta in nuxt 3
The implementation details would be fairly tricky so I'm not inclined to implement this at the moment or in this library. However, with Vue 2.7 bringing composition API to Vue 2, there may be an opportunity to enhance Nuxt Bridge or Nuxt 2 to have this behaviour.