Answer the question
In order to leave comments, you need to log in
How to access the root template from a component in NUXT?
Ask such a question.
When working with pure vue, I kept some things in the main app component (localization file, general loadable system settings, some methods that I use often and everywhere) and accessed them from internal components via this.$root.... .
Immediately in Nuxt, the $root component is completely different, its own in Nuxt.
Tell me how to correctly contact the root of my layout where everything is stored.
Or maybe I'm not doing it correctly at all what I store some data and methods in the root component. There is some other and correct way. Point me right :)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question