I'm using keep-alive
in the router-view
like this:
<keep-alive>
<router-view></router-view>
<keep-alive>
So I'm saving all "pages" of my app. My questions:
How many components can keep-alive save?
Can I program something to make keep-alive save just one component (the last one)?
Thanks in advance
v-bind:include="[ 'dashboard' ]
in the example). So you could try and keep only the name of the last loaded component in that array – zizzov-bind:include="componentsArray"
will always only have one component. – zizzo