Closed AndrewBogdanovTSS closed 3 years ago
I recommend using "nuxt-property-decorator", which covers all the features of this module and you can see "head" working here
@AndrewBogdanovTSS
Component.registerHooks([
'beforeRouteEnter',
'beforeRouteLeave',
'beforeRouteUpdate', // for vue-router 2.2+
'head',
]);
Version
v1.2.1
Reproduction link
https://github.com/nuxt-community/nuxt-class-component
Steps to reproduce
head
property to a config objectWhat is expected ?
Title of the related page is changed
What is actually happening?
Additional comments?
Same is happening with other custom properties. For example, if you try to use @nuxt/apollo module and it's apollo config property you will also get an error:
I think any other custom property will also produce similar error.