'Add Main layout based on router address

I have a vue app and I use app.vue for all of my pages (for the main layout)

but I want to add a new menu component for just some that starts with /x/.... router address

I know I can make a component for that menu and add it to every one of them.

<navbar/>

but is there another way?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source