pinafore/routes/_components/HiddenFromSSR.html

13 lines
218 B
HTML
Raw Normal View History

2018-01-21 04:30:49 +00:00
<div class="{{hidden ? 'hidden' : ''}}">
<slot></slot>
</div>
<script>
export default {
data: () => ({
hidden: true
}),
oncreate () {
this.set({hidden: !process.browser})
}
}
</script>