Answer the question
In order to leave comments, you need to log in
VUE SPA how to override component in layout?
Kind.
VUE SPA
The template has a header. I would like to change the visualization of the header from page to page. But something like a stone flower does not come out.
I try a component - does not redefine from page. Gives an error message.
The only way out that I found is to use a global variable and assign any values to it in the loaded pages. But it seems to me that it would be better to do something differently.
Tell me how to do it right?
Answer the question
In order to leave comments, you need to log in
Well, apparently, you need to use a router . In the routes themselves, pass the parameter that will come to the prop component of the header. and there already depending on it, do what you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question