I'm new to Vue and I'm building a Vue app with a side menu which let the user navigate the website.
I'm using Vue Router, and the code is like this
<template>
<div id="app">
<Header />
<SideMenu
active="0"
/>
<router-view/>
</div>
</template>
I when the user clicks on one of the SideMenu links it goes to another route and the content gets generated next to the SideMenu without loading them again.
What if I wanted to have a /login route without the Side Menu and the Header?
Do I have to do this and then move the Header and Menu components inside every Route View?
<template>
<div id="app">
<router-view/>
</div>
</template>
By doing that every time a user click a link the Header and the Menu loads again causing a slower app.
What can I do?
(Can I move the router-view inside another View?)