NuxtN
Nuxt2y ago
plex

Render child elements when parent's v-show is false?

I'm pretty sure I've read about a way to make this work before, but I can't find it anymore.

Basically what I want to achieve is that a menu is rendered inside a slideover - but only on mobile viewports.

My approach is this:

<Slideover v-show="isMobile"> <Menu /> </Slideover>

The
Menu
component should still be rendered if isMobile is
false
, just without the slideover surrounding it.

Is there a way to make this work?
Was this page helpful?